Skip to content

feat: add config for checksum during project build - #1293

Merged
Soner (shyim) merged 3 commits into
shopware:mainfrom
M-arcus:config-for-checksum
Jul 30, 2026
Merged

feat: add config for checksum during project build#1293
Soner (shyim) merged 3 commits into
shopware:mainfrom
M-arcus:config-for-checksum

Conversation

@M-arcus

@M-arcus Marcus Müller (M-arcus) commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

What changed?

Added two new options to the project config (.shopware-project.yml) to control extension checksum generation during shopware-cli project ci:

  • build.disable_checksums when true, the "Generating extension checksums" step is skipped entirely, so no checksum.json files are written into the extensions.
  • build.keep_existing_checksums when true, extensions that already ship a checksum.json keep it untouched; extensions without one still get a generated file.

Both default to false, existing behavior is unchanged.

build:
  disable_checksums: true
  keep_existing_checksums: true

Why?

Some extensions already deliver a checksum.json and I want to keep those intact. keep_existing_checksums covers that case, disable_checksums is for pipelines that don't want the files generated at all.

How was this tested?

new tests added (internal/shop/config_test.go)

Related issue or discussion

No.

@codecov-commenter

Codecov Comments Bot (codecov-commenter) commented Jul 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 53.92%. Comparing base (2991cdd) to head (e911f0f).

Files with missing lines Patch % Lines
cmd/project/ci.go 0.00% 12 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1293      +/-   ##
==========================================
- Coverage   53.93%   53.92%   -0.02%     
==========================================
  Files         303      303              
  Lines       23400    23405       +5     
==========================================
  Hits        12620    12620              
- Misses      10752    10757       +5     
  Partials       28       28              
Flag Coverage Δ
go-test 53.92% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@shyim
Soner (shyim) merged commit 5c1f5a5 into shopware:main Jul 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants