Skip to content

Commit

Permalink
Fix for docker-compose on arm64 Darwin
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Oct 23, 2024
1 parent 0f87fbd commit b1f190b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/get/get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1846,6 +1846,11 @@ func Test_DownloadDockerCompose(t *testing.T) {
version: toolVersion,
url: `https://github.com/docker/compose/releases/download/v2.3.4/docker-compose-darwin-x86_64`,
},
{os: "darwin",
arch: archDarwinARM64,
version: toolVersion,
url: `https://github.com/docker/compose/releases/download/v2.3.4/docker-compose-darwin-aarch64`,
},
{os: "linux",
arch: archARM7,
version: toolVersion,
Expand Down
3 changes: 3 additions & 0 deletions pkg/get/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -1419,6 +1419,9 @@ https://github.com/inlets/inletsctl/releases/download/{{.Version}}/{{$fileName}}
{{- end }}
{{- else if eq .OS "darwin" -}}
{{$osStr = "darwin"}}
{{- if eq .Arch "arm64" -}}
{{ $arch = "aarch64"}}
{{- end -}}
{{- end -}}
{{$ext := ""}}
{{ if HasPrefix .OS "ming" -}}
Expand Down

0 comments on commit b1f190b

Please sign in to comment.