Using as Go package


I want to import flyctl as external module to my Go script but go get fails with message:

go get

go: requires reading at revision api/v0.0.0: unknown revision api/v0.0.0

Seems like problem was introduced in this commit: Plumb `tokens.Tokens` struct into `api.Client` (#3073) · superfly/flyctl@9441656 · GitHub (updating flyctl/api version from timestamped version to v0.0.0 in go.mod). It doesn’t affect flyctl itself due to replace directive in go.mod.

Was it an intentional change or it is a bug and will be fixed? I would much prefer to use flyctl as module instead of working with exec.Command.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.