launchrctl / launchr

Launchr is a CLI action runner that executes actions inside short-lived local containers.
Apache License 2.0
11 stars 2 forks source link

Ability to set arbitrary version of binary when "plasmactl build -p" #22

Closed davidferlay closed 9 months ago

davidferlay commented 9 months ago

Current

➜  launchrctl build -p github.com/launchrctl/launchr@latest -n xxx -o xxx       
Starting building xxx
Creating project files and fetching dependencies
(...)
Building xxx
Build complete: xxx

➜ ./xxx --version
xxx version v0.5.2 linux/amd64
Built with launchrctl version v0.5.2 linux/amd64

Expected

iignatevich commented 9 months ago

please use --build-version value flag

davidferlay commented 9 months ago

Works fine :+1:

➜ ./xxx build -p github.com/launchrctl/launchr@22-build_arbitrary_version -p github.com/launchrctl/compose@latest  -p github.com/skilld-labs/components-bump@latest -n xxx -o xxx --build-version 6.6.6                                                                                                              
Starting building xxx
Creating project files and fetching dependencies
go: creating new go.mod: module xxx
go: added github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161
go: added github.com/Microsoft/go-winio v0.6.1
go: added github.com/a8m/envsubst v1.4.2
go: added github.com/containerd/containerd v1.7.7
go: added github.com/distribution/reference v0.5.0
go: added github.com/docker/distribution v2.8.3+incompatible
go: added github.com/docker/docker v24.0.6+incompatible
go: added github.com/docker/go-connections v0.4.0
go: added github.com/docker/go-units v0.5.0
go: added github.com/gogo/protobuf v1.3.2
go: added github.com/inconshreveable/mousetrap v1.1.0
go: added github.com/klauspost/compress v1.17.1
go: added github.com/launchrctl/launchr v0.5.2
go: added github.com/moby/moby v24.0.6+incompatible
go: added github.com/moby/patternmatcher v0.6.0
go: added github.com/moby/sys/sequential v0.5.0
go: added github.com/moby/sys/signal v0.7.0
go: added github.com/moby/term v0.5.0
go: added github.com/morikuni/aec v1.0.0
go: added github.com/opencontainers/go-digest v1.0.0
go: added github.com/opencontainers/image-spec v1.1.0-rc5
go: added github.com/opencontainers/runc v1.1.9
go: added github.com/pkg/errors v0.9.1
go: added github.com/santhosh-tekuri/jsonschema/v5 v5.3.1
go: added github.com/sirupsen/logrus v1.9.3
go: added github.com/spf13/cobra v1.7.0
go: added github.com/spf13/pflag v1.0.5
go: added golang.org/x/mod v0.13.0
go: added golang.org/x/net v0.17.0
go: added golang.org/x/sys v0.13.0
go: added golang.org/x/tools v0.14.0
go: added gopkg.in/yaml.v3 v3.0.1
go: upgraded github.com/launchrctl/launchr v0.5.2 => v0.5.3-0.20240111151837-09da03bf8b3f
go: added dario.cat/mergo v1.0.0
go: added filippo.io/age v1.1.1
go: added github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371
go: added github.com/cloudflare/circl v1.3.3
go: upgraded github.com/cyphar/filepath-securejoin v0.2.3 => v0.2.4
go: added github.com/emirpasic/gods v1.18.1
go: added github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376
go: added github.com/go-git/go-billy/v5 v5.5.0
go: added github.com/go-git/go-git/v5 v5.10.1
go: added github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99
go: added github.com/kevinburke/ssh_config v1.2.0
go: added github.com/launchrctl/compose v0.1.2
go: added github.com/launchrctl/keyring v0.1.0
go: added github.com/pjbgf/sha1cd v0.3.0
go: added github.com/sergi/go-diff v1.3.1
go: added github.com/skeema/knownhosts v1.2.1
go: added github.com/stevenle/topsort v0.2.0
go: added github.com/xanzy/ssh-agent v0.3.3
go: upgraded golang.org/x/crypto v0.14.0 => v0.15.0
go: upgraded golang.org/x/net v0.17.0 => v0.18.0
go: upgraded golang.org/x/sys v0.13.0 => v0.14.0
go: upgraded golang.org/x/term v0.13.0 => v0.14.0
go: added gopkg.in/warnings.v0 v0.1.2
go: downloading github.com/skilld-labs/components-bump v1.0.0
go: upgraded github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371 => v0.0.0-20230923063757-afb1ddc0824c
go: upgraded github.com/cloudflare/circl v1.3.3 => v1.3.6
go: upgraded github.com/containerd/containerd v1.7.7 => v1.7.11
go: upgraded github.com/docker/docker v24.0.6+incompatible => v24.0.7+incompatible
go: upgraded github.com/go-git/go-git/v5 v5.10.1 => v5.11.0
go: upgraded github.com/klauspost/compress v1.17.1 => v1.17.4
go: upgraded github.com/moby/moby v24.0.6+incompatible => v24.0.7+incompatible
go: upgraded github.com/opencontainers/runc v1.1.9 => v1.1.10
go: added github.com/skilld-labs/components-bump v1.0.0
go: upgraded golang.org/x/crypto v0.15.0 => v0.17.0
go: upgraded golang.org/x/mod v0.13.0 => v0.14.0
go: upgraded golang.org/x/net v0.18.0 => v0.19.0
go: upgraded golang.org/x/sys v0.14.0 => v0.15.0
go: upgraded golang.org/x/term v0.14.0 => v0.15.0
go: upgraded golang.org/x/tools v0.14.0 => v0.16.1
Building xxx
Build complete: xxx

➜ ./xxx --version
xxx version 6.6.6 linux/amd64                 
Built with xxx version 6.6.6 linux/amd64
Core version: v0.5.3-0.20240111151837-09da03bf8b3f
Plugins:
  - github.com/launchrctl/compose v0.1.2
  - github.com/launchrctl/keyring v0.1.0
  - github.com/skilld-labs/components-bump v1.0.0