xgo: go: go.mod file not found in current directory or any parent directory
I get:
go: go.mod file not found in current directory or any parent directory
However:
bash-3.2$ ls go.mod
go.mod
The command:
xgo -x --deps https://www.sqlite.org/2020/sqlite-autoconf-3320300.tar.gz --depsargs '--disable-fts4 --disable-fts5 --disable-rtree --disable-static-shell' --pkg internal/log_analysis/datalake/database_api/snowflake/driver/main --targets=linux/amd64 -out main --tags 'libsqlite3 linux' -dest out/bin/internal/log_analysis/datalake/database_api/snowflake/driver/main .
Any ideas?
This worked with go 1.13 but now I have to move to 1.16 because of other changes in the code base.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 23 (8 by maintainers)
Commits related to this issue
- Apply patch from https://github.com/techknowlogick/xgo/issues/109 — committed to SpectraLogic/xgo by LogicalChaos 3 years ago
- Fix release build This forces xgo to use Go 1.15, to work around a bug with Go modules: https://github.com/techknowlogick/xgo/issues/109#issuecomment-835494720 This also uses the correct Darwin and ... — committed to writefreely/writefreely by thebaer 3 years ago
- gomod fixes for go1.16 patch from: https://github.com/techknowlogick/xgo/issues/109#issuecomment-809396389 — committed to techknowlogick/xgo by techknowlogick 3 years ago
- gomod fixes for go1.16 (#121) * gomod fixes for go1.16 patch from: https://github.com/techknowlogick/xgo/issues/109#issuecomment-809396389 * Update test_pr.yml * Update test_pr.yml * klud... — committed to techknowlogick/xgo by techknowlogick 3 years ago
- Split out base and toolchain and ensure CI tests the current PR (#194) This PR substantially restructures the xgo dockers creating a separate toolchain container, go-version container and then a merg... — committed to techknowlogick/xgo by zeripath a year ago
oh darn, thanks for letting me know. I’ve reopened this so I can look into it.
Hi @techknowlogick @rleighton I’ve hit this issue too – seems to be a 6 line fix. I’d push a PR but don’t have the permissions.
Here’s a git patch:
Awesome, thanks 😃 Let me try to put this together as a PR.
Closing as linked PR has now been merged. Will be a sec before CI builds/publishes the new images.