Using github.com/superfly/flyctl as Go package

Hello!

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

go get github.com/superfly/flyctl@v0.1.131

go: github.com/superfly/flyctl@v0.1.131 requires github.com/superfly/flyctl/api@v0.0.0: reading github.com/superfly/flyctl/api/go.mod 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.