Skip to content
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

go: inconsistent vendoring in ... #16

Open
matwey opened this issue Dec 9, 2021 · 1 comment
Open

go: inconsistent vendoring in ... #16

matwey opened this issue Dec 9, 2021 · 1 comment

Comments

@matwey
Copy link
Member

matwey commented Dec 9, 2021

Hi,

I am trying to build https://gitlab.com/yawning/obfs4 at https://build.opensuse.org/package/show/home:matwey:obfs4/obfs4

Currently, I see the following issue probably related to obs-service-go_modules package:

[  106s] + go install -v -p 4 -x -buildmode=pie -mod=vendor gitlab.com/yawning/obfs4.git/obfs4proxy
[  106s] go: inconsistent vendoring in /home/abuild/rpmbuild/BUILD/obfs4-0.0.11:
[  106s] 	git.schwanenlied.me/yawning/[email protected]: is marked as explicit in vendor/modules.txt, but not explicitly required in go.mod
[  106s] 	github.com/dsnet/[email protected]: is marked as explicit in vendor/modules.txt, but not explicitly required in go.mod
[  106s] 	golang.org/x/[email protected]: is marked as explicit in vendor/modules.txt, but not explicitly required in go.mod
[  106s] 	golang.org/x/[email protected]: is marked as explicit in vendor/modules.txt, but not explicitly required in go.mod
[  106s] 
[  106s] 	To ignore the vendor directory, use -mod=readonly or -mod=mod.
[  106s] 	To sync the vendor directory, run:
[  106s] 		go mod vendor

I've found that executing go mod vendor updates go.mod file in place.

@alexandrevicenzi
Copy link

Do you still have issues?

A workaround that I found was that the tarball causes the "inconsistent vendoring", and I fixed it with:

tar -xf %{SOURCE1}

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

No branches or pull requests

2 participants