-
Notifications
You must be signed in to change notification settings - Fork 245
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
Unable to build 'flyctl' #2748
Comments
I was able to build the executable with
|
I was able to run |
It looks as if this is the culprit, but why would this be a problem for me and not anyone else? 🤔 |
I wish I could answer that, but maybe someone else can help. |
We just merged in support for go 1.21 yesterday. Rebase and you should be good! |
I just did a full clone of the repository, cleaned both the build cache and the module download cache, but still |
Did you update the slices package? The latest version matches the behavior of the new slices package in the stdlib, which returns an int instead of bool from the compare func. I thought I had a PR to replace |
Excuse my ignorance, but I'm having a hard time understanding why I would get anything but a successful build if I:
At no point did I run any commands to update any of the packages. |
For whatever reason the package |
Thanks for trying to sort this out for me, it really means a lot! I did a little more sleuthing and after cleaning the module cache, and running $ make build
...
Running Build
CGO_ENABLED=0 go build -o bin/flyctl -ldflags="-X 'github.com/superfly/flyctl/internal/buildinfo.buildDate=2023-08-30T18:27:39Z' -X 'github.com/superfly/flyctl/internal/buildinfo.branchName=master'" .
go: downloading github.com/mattn/go-runewidth v0.0.15
go: downloading golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63
go: downloading github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81
go: downloading github.com/containerd/stargz-snapshotter v0.13.0
go: downloading github.com/rivo/uniseg v0.4.4
go: downloading github.com/grpc-ecosystem/grpc-gateway v1.16.0
# github.com/superfly/flyctl/internal/command/migrate_to_v2
internal/command/migrate_to_v2/migrate_to_v2.go:286:26: type func(i *"github.com/superfly/flyctl/api".AllocationStatus, j *"github.com/superfly/flyctl/api".AllocationStatus) bool of func(i, j *api.AllocationStatus) bool {…} does not match inferred type func(a *"github.com/superfly/flyctl/api".AllocationStatus, b *"github.com/superfly/flyctl/api".AllocationStatus) int for func(a E, b E) int
make: *** [Makefile:12: build] Error 1 Where it says And it's still puzzling to me why the mere existence of this newer version disrupts the build though as shouldn't the version from |
I'm sorry that this has been such a slog! The PR that fixes function signatures has been merged. Let me know if you're still having issues with that. |
You, sir, are a gentleman and a scholar - I'm finally able to build off of the tip thanks to you! |
Describe the bug
After cloning this repository, I am unable to build the
flyctl
executable.Command output
I'm assuming this is something to do with my machine as it seems like an obvious enough issue that would affect more people.
I've tried removing Go entirely (deleted
/usr/local/go
and~/go
directories) and re-installing it, but the result is the same. Haven't stumbled onto this issue elsewhere.The text was updated successfully, but these errors were encountered: