3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #275929 from mveytsman/patch-2

copilot-cli: use `v${version}` for version (fixes bug in version checking)
This commit is contained in:
Thiago Kenji Okada 2024-01-09 16:12:17 +00:00 committed by GitHub
commit 3eb1c0f843
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@ buildGoModule rec {
ldflags = [
"-s"
"-w"
"-X github.com/aws/copilot-cli/internal/pkg/version.Version=${version}"
"-X github.com/aws/copilot-cli/internal/pkg/version.Version=v${version}"
"-X github.com/aws/copilot-cli/internal/pkg/cli.binaryS3BucketPath=https://ecs-cli-v2-release.s3.amazonaws.com"
];
@ -35,6 +35,7 @@ buildGoModule rec {
passthru.tests.version = testers.testVersion {
package = copilot-cli;
command = "copilot version";
version = "v${version}";
};
meta = with lib; {