flyctl: update ldflags

Update ldflags to match https://github.com/superfly/flyctl/blob/v0.0.323/.goreleaser.yml#L19-L22
This commit is contained in:
Rene de la Garza 2022-05-06 10:18:41 -05:00 committed by GitHub
parent f566801fa2
commit 14ca12f3f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,10 +17,10 @@ buildGoModule rec {
ldflags = [
"-s" "-w"
"-X github.com/superfly/flyctl/flyctl.Commit=${src.rev}"
"-X github.com/superfly/flyctl/flyctl.BuildDate=1970-01-01T00:00:00+0000"
"-X github.com/superfly/flyctl/flyctl.Environment=production"
"-X github.com/superfly/flyctl/flyctl.Version=${version}"
"-X github.com/superfly/flyctl/internal/buildinfo.commit=${src.rev}"
"-X github.com/superfly/flyctl/internal/buildinfo.buildDate=1970-01-01T00:00:00+0000"
"-X github.com/superfly/flyctl/internal/buildinfo.environment=production"
"-X github.com/superfly/flyctl/internal/buildinfo.version=${version}"
];
preBuild = ''