Skip to content

New strategy: gomodcache#76

Open
cwh42 wants to merge 5 commits into
openSUSE:masterfrom
cwh42:download_strategy
Open

New strategy: gomodcache#76
cwh42 wants to merge 5 commits into
openSUSE:masterfrom
cwh42:download_strategy

Conversation

@cwh42

@cwh42 cwh42 commented Oct 13, 2025

Copy link
Copy Markdown
Member

Implement a new strategy which creates a tarball of the GOMODCACHE-dir.
That enables packagers to use GOMODCACHE=/path/to/cachedir go mod vendor at build time.

Use case:

We are packaging https://goharbor.io. It uses go-swagger to create server code. Because we run go-swagger at build time we can not use this service with the 'vendor' strategy before build time. It throws an error as it can not find the libraries that go-swagger has not yet created.
With the gomodcache strategy it works flawlessly.

@cwh42

cwh42 commented Oct 13, 2025

Copy link
Copy Markdown
Member Author

This also could solve #68 and #34

@cwh42 cwh42 force-pushed the download_strategy branch from 989b83e to e183f85 Compare October 13, 2025 16:01
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.

1 participant