-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Fix GO source vendoring #12010
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix GO source vendoring #12010
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The release
targets in the makefile are useful shortcuts for the Gitea project itself for releasing Gitea via Drone. As well go modules are disabled during release steps. I am hesitant about this change as if you would like to build Gitea then the make build step is what you need to use.
I think Lines 332 to 343 in 121103f
|
@techknowlogick this pull request fixes the generation of an archive with all dependencies for offline build. It is generated, and is called as |
@silverwind Thank you for the find! I didn't even notice it once. |
This commit fixes error like this: ``` CC= GOOS= GOARCH= go generate -mod=vendor -tags 'bindata pam sqlite sqlite_unlock_notify' go: inconsistent vendoring in /builddir/build/BUILD/gitea-1.12.1: src.techknowlogick.com/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt run 'go mod vendor' to sync, or use -mod=mod or -mod=readonly to ignore the vendor directory go: inconsistent vendoring in /builddir/build/BUILD/gitea-1.12.1: src.techknowlogick.com/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt run 'go mod vendor' to sync, or use -mod=mod or -mod=readonly to ignore the vendor directory make: *** [Makefile:518: generate] Error 1 ```
|
@silverwind To be honest, I don't know why it breaks. Everything was compiled without the Internet to version 1.11.6 inclusive. The next step was to manually re-pack the archive, pre-making a |
I think the issue is that the release tasks do |
|
This issue is essentially golang/go#30515. We could potentially |
Prevent `go get` from touching `go.mod` and `go.sum` when executing global binaries during the build process. Once golang/go#30515 is fixed, we should is whatever solution is provided there. Fixes: go-gitea#12010
Alternative PR: #12030 |
Prevent `go get` from touching `go.mod` and `go.sum` when executing global binaries during the build process. Once golang/go#30515 is fixed, we should is whatever solution is provided there. Fixes: #12010 Co-authored-by: techknowlogick <[email protected]>
Prevent `go get` from touching `go.mod` and `go.sum` when executing global binaries during the build process. Once golang/go#30515 is fixed, we should is whatever solution is provided there. Fixes: go-gitea#12010 Co-authored-by: techknowlogick <[email protected]>
Prevent `go get` from touching `go.mod` and `go.sum` when executing global binaries during the build process. Once golang/go#30515 is fixed, we should is whatever solution is provided there. Fixes: #12010 Co-authored-by: techknowlogick <[email protected]> Co-authored-by: silverwind <[email protected]> Co-authored-by: techknowlogick <[email protected]>
Prevent `go get` from touching `go.mod` and `go.sum` when executing global binaries during the build process. Once golang/go#30515 is fixed, we should is whatever solution is provided there. Fixes: go-gitea#12010 Co-authored-by: techknowlogick <[email protected]>
This commit fixes error like this:
Maybe somebody's got a better fix? I'm not sure if my decision is right because the vendor is already in the repository.