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
Fails to build offline with vendored dependencies (building package on Linux / openSUSE) #7881
Comments
Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review.
Finally, remember to use https://discuss.ipfs.io if you just need general support. |
Hey @mcepl, I'm the maintainer for the git-package for the Archlinux AUR package. Have a look at my build instructions here. They should work fine for you as well. Have a look at the prepare step on how to fetch the dependencies before building offline. :) |
(99MB tarball of dependencies? Really?) |
Hmm, modified SPEC file is still on the same URL, but the build still fails:
Any ideas what do I do wrong? |
Did you download the source from https://dist.ipfs.io/go-ipfs/v0.7.0/go-ipfs-source.tar.gz? That should be pre-vendored. |
Well, the result is not much better:
Complete build log with all details of the effort. |
Previously, we avoided this variable because we were storing some flags with spaces (potentially). Unfortunately, that means these flags are not set for some commands (e.g., `go fmt`) leading to issues when building from vendored sources. Now we: 1. Use GOFLAGS where possible. 2. Pass tags and special flags on the commandline where necessary. This should fix #7881.
Ok, I'm hoping #7903 fixes the issue. My guess is that some go commands were getting executed without |
@Stebalien, better, but not yet:
|
Ok, I think I've finally gotten it working. Apparently, go doesn't obey GOFLAGS everywhere, so I needed to pass NOTE: This fix will only work with the source tarball from dist.ipfs.io as |
Build work well, unfortunately at least one test fails. However, I think that I can build this in my private repo for further playing before I will submit it to the official repos. THANK YOU VERY MUCH! |
Thanks for your help debugging! |
Huh - can you share more details? I think that should be a bug to report upstream. |
I'm... not sure? Specifically, one of the issues was https://github.com/ipfs/go-ipfs/pull/7903/files#diff-bede62ea1c96a1d7524e6cffe4a7a06a62392a38e1bdad0e8600d07ec06aa130L29. |
Version information:
0.7.0 tarball
When trying to build package for openSUSE/Factory (complete build instructions are available), which is basically:
build fails in the openSUSE build system, because it tries to access network (but all build systems of all major Linux distributions don’t have network access, because of security reasons):
How can I make
go-ipfs
build even in the environment without the network access?(Vendoring was done by running
make build && go mod vendor
in the unpacked tarball.)Complete build log with all details of package versions etc.
The text was updated successfully, but these errors were encountered: