Merge pull request #195641 from aaronjheng/bingo-0.7.0
bingo: 0.6.0 -> 0.7.0
This commit is contained in:
commit
773c2a7afa
3 changed files with 4 additions and 47 deletions
|
@ -1,13 +0,0 @@
|
||||||
diff --git a/pkg/version/version.go b/pkg/version/version.go
|
|
||||||
index 30f8f30..11c12a0 100644
|
|
||||||
--- a/pkg/version/version.go
|
|
||||||
+++ b/pkg/version/version.go
|
|
||||||
@@ -6,7 +6,7 @@ package version
|
|
||||||
import "github.com/Masterminds/semver"
|
|
||||||
|
|
||||||
// Version returns 'bingo' version.
|
|
||||||
-const Version = "v0.6"
|
|
||||||
+const Version = "v0.6.0"
|
|
||||||
|
|
||||||
var (
|
|
||||||
Go114 = semver.MustParse("1.14")
|
|
|
@ -1,24 +1,17 @@
|
||||||
{ lib, buildGoModule, fetchFromGitHub, testers, bingo }:
|
{ lib, buildGoModule, fetchFromGitHub }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "bingo";
|
pname = "bingo";
|
||||||
version = "0.6.0";
|
version = "0.7.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "bwplotka";
|
owner = "bwplotka";
|
||||||
repo = "bingo";
|
repo = "bingo";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-t2nkY+mwek2NcbCwCkI3Mc1ULEJIjatBjChBdnKFAg8=";
|
sha256 = "sha256-s+vdtMzeHUtUlmMlvgnK83RYoMqS3GqrTnu7LssIK6A=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "sha256-TCbwIHDg2YaLIscCoGPRBv5G3YSJ+qn/koOjPh+KKRY=";
|
vendorSha256 = "sha256-28p1g+p+guJ0x4/5QDGsGN6gDnZkE4AKF/2cFgNjPDM=";
|
||||||
|
|
||||||
patches = [
|
|
||||||
# Do not execute `go` command when invoking `bingo version`.
|
|
||||||
./version_go.patch
|
|
||||||
# Specific to v0.6.0. `v0.6` -> `v0.6.0`
|
|
||||||
./bingo_version.patch
|
|
||||||
];
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
rm get_e2e_test.go get_e2e_utils_test.go
|
rm get_e2e_test.go get_e2e_utils_test.go
|
||||||
|
@ -28,12 +21,6 @@ buildGoModule rec {
|
||||||
|
|
||||||
ldflags = [ "-s" "-w" ];
|
ldflags = [ "-s" "-w" ];
|
||||||
|
|
||||||
passthru.tests.version = testers.testVersion {
|
|
||||||
package = bingo;
|
|
||||||
command = "bingo version";
|
|
||||||
version = "v${version}";
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Like `go get` but for Go tools! CI Automating versioning of Go binaries in a nested, isolated Go modules.";
|
description = "Like `go get` but for Go tools! CI Automating versioning of Go binaries in a nested, isolated Go modules.";
|
||||||
homepage = "https://github.com/bwplotka/bingo";
|
homepage = "https://github.com/bwplotka/bingo";
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
diff --git a/main.go b/main.go
|
|
||||||
index 5600f7e..662ed1b 100644
|
|
||||||
--- a/main.go
|
|
||||||
+++ b/main.go
|
|
||||||
@@ -201,10 +201,8 @@ func main() {
|
|
||||||
return pkgs.PrintTab(target, os.Stdout)
|
|
||||||
}
|
|
||||||
case "version":
|
|
||||||
- cmdFunc = func(ctx context.Context, r *runner.Runner) error {
|
|
||||||
- _, err := fmt.Fprintln(os.Stdout, version.Version)
|
|
||||||
- return err
|
|
||||||
- }
|
|
||||||
+ _, _ = fmt.Fprintln(os.Stdout, version.Version)
|
|
||||||
+ return
|
|
||||||
default:
|
|
||||||
exitOnUsageError(flags.Usage, "No such command", flags.Arg(0))
|
|
||||||
}
|
|
Loading…
Reference in a new issue