Skip to content

Commit

Permalink
orb: fix install go toolchain on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
zchee committed Nov 14, 2020
1 parent d5a2a2c commit 5c5eafc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/@orb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,30 @@ display:
executors:
linux:
parameters:
tag:
description: "The tag to use on the golang debian image for linux platform."
version:
description: "The Go version to use on the golang debian image for linux platform."
type: string
default: "1.15-buster"
shell:
description: "Shell to use for execution command."
type: string
default: "/bin/bash -eu -o pipefail"
docker:
- image: "golang:<< parameters.tag >>"
- image: "golang:<< parameters.version >>"
shell: "<< parameters.shell >>"

alpine:
parameters:
tag:
description: "The tag to use on the golang alpine image for linux platform."
version:
description: "The Go version to use on the golang alpine image for linux platform."
type: string
default: "1.15-alpine"
shell:
description: "Shell to use for execution command."
type: string
default: "/bin/ash -eu -o pipefail"
docker:
- image: "golang:<< parameters.tag >>"
- image: "golang:<< parameters.version >>"
shell: '<< parameters.shell >>'

macos:
Expand Down
2 changes: 1 addition & 1 deletion src/commands/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ steps:
darwin)
curl -sSL https://golang.org/dl/go<< parameters.version >>.${goos}-amd64.tar.gz | sudo tar -xzf - -C << parameters.path >>
sudo chown distiller:admin << parameters.path >>/go
sudo chown ${USER}:admin << parameters.path >>/go
;;
*)
Expand Down

0 comments on commit 5c5eafc

Please sign in to comment.