-
-
Notifications
You must be signed in to change notification settings - Fork 107
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 with a go.sum mismatch for the asynqmon project #90
Comments
looks like go env -w GOPROXY=https://proxy.golang.org fixes it (fedora apparently defaults to direct?) |
Hmm that's weird. I'm not sure I understand where the issue is - the Docker build in this repo is working, and the following works for me on
Do you have some more minimal steps to reproduce this issue (preferably without podman :)? |
My immediate explanation for what is going on when the build failed with that checksum mismatch is the hibiken/asynqmon project changed the commit tagged with v0.7.2 some time after it was first used with https://proxy.golang.org, so now if you go through https://proxy.golang.org you get one commit and if you go direct you get a different commit, and the go.sum for bitmagnet-io has recorded the checksum you get when going through https://proxy.golang.org. That would explain why the build fails for me with GOPROXY=direct but succeeds with GOPROXY=https://proxy.golang.org. Looking at the The upstream go distribution (tarballs from go.dev) default GOPROXY to And not being an expert on go builds, I am at a loss to explain the difference in behavior between the go-task build (which says it runs The reason I ended up using the go-task build is because the go-task stuff includes a way to run migrations, and it wasn't clear to me if they would get run otherwise. And I am running separate http_server and dht_crawler processes, and if migrations were run automatically at startup it was clear which would run them (I guess postgres has transactional ddl so maybe it doesn't matter?) Which is all to say I am not sure this is so much a bug or something to fix with bitmagnet, but something hinky went on with one of its dependencies which may cause build issues. |
it looks like v0.7.2 hasn't been officially cut as a release in the asynqmon project, which is maybe why they felt comfortable changing the tag, however someone in the go ecosystem used asynqmon@latest somewhere, and v0.7.2 was the latest tag so it ended up cached in proxy.golang.org and sum.golang.org, but more changes came in and the asynqmon project moved the tag not thinking that anyone was already using it |
Okay, lets give them a chance to fix it, if it hasn't been rectified by the next time we do a release I'll look at downgrading or specifying a commit hash rather than 0.7.2... |
go-task build
results inlooks like this has been reported against the asynqmon project here hibiken/asynqmon#318
My build script is somewhat atypical and looks like
and is creating a container based on fedora:latest, and building bitmagnet inside that container
The text was updated successfully, but these errors were encountered: