Skip to content

Commit

Permalink
Use PATH instead of symlink
Browse files Browse the repository at this point in the history
Signed-off-by: Eugén Cowie <[email protected]>
  • Loading branch information
eugencowie committed Sep 27, 2024
1 parent 63bfacc commit 38eb6c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/docker-compose/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (m *Mixin) Build(ctx context.Context) error {
}

dockerfileLines := fmt.Sprintf(`ADD --chmod=755 https://github.com/docker/compose/releases/download/v%s/docker-compose-linux-x86_64 /usr/local/lib/docker/cli-plugins/docker-compose
RUN ln -s /usr/local/lib/docker/cli-plugins/docker-compose /usr/local/bin/docker-compose`, dockerComposeVersion)
ENV PATH="$PATH:/usr/local/lib/docker/cli-plugins"`, dockerComposeVersion)

fmt.Fprintln(m.Out, dockerfileLines)

Expand Down
2 changes: 1 addition & 1 deletion pkg/docker-compose/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

func TestMixin_Build(t *testing.T) {
const buildOutput = `ADD --chmod=755 https://github.com/docker/compose/releases/download/v2.10.2/docker-compose-linux-x86_64 /usr/local/lib/docker/cli-plugins/docker-compose
RUN ln -s /usr/local/lib/docker/cli-plugins/docker-compose /usr/local/bin/docker-compose
ENV PATH="$PATH:/usr/local/lib/docker/cli-plugins"
`

t.Run("build", func(t *testing.T) {
Expand Down

0 comments on commit 38eb6c9

Please sign in to comment.