Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dockercompose: upgrade compose-go to v1.0.8 #5233

Merged
merged 1 commit into from
Nov 30, 2021
Merged

Conversation

milas
Copy link
Contributor

@milas milas commented Nov 29, 2021

The compose-go library reached v1! It's also got fixes for
(hopefully) all the big regressions from the Python version,
particularly environment variable resolution.

There are a couple changes to the client, predominantly to share
more logic around loader options between the three code paths
(compose-go, CLI fallback, fake/tests).

Importantly, the compose-go logic for Dockerfile paths changed,
such that they are no longer made to be absolute (unless an absolute
path is used, at which point it won't be touched). They're assumed
to be relative to the context in the general case. This actually
only affects the assertions in the tests - Compose has flip-flopped
behavior here multiple times, so Tilt already has logic to join the
dockerfile path with the context path if the former is relative.
(In theory, this is now the final behavior, as it was restoring v1
semantics to address compatibility with WSL, but I think I said the
same thing last time they changed the path resolution semantics!)

The `compose-go` library reached v1! It's also got fixes for
(hopefully) all the big regressions from the Python version,
particularly environment variable resolution.

There are a couple changes to the client, predominantly to share
more logic around loader options between the three code paths
(`compose-go`, CLI fallback, fake/tests).

Importantly, the `compose-go` logic for `Dockerfile` paths changed,
such that they are no longer made to be absolute (unless an absolute
path is used, at which point it won't be touched). They're assumed
to be relative to the `context` in the general case. This actually
only affects the assertions in the tests - Compose has flip-flopped
behavior here multiple times, so Tilt already has logic to join the
`dockerfile` path with the `context` path if the former is relative.
(In theory, this is now the final behavior, as it was restoring v1
semantics to address compatibility with WSL, but I think I said the
same thing last time they changed the path resolution semantics!)
@milas milas added the dependencies Pull requests that update a dependency file label Nov 29, 2021
@milas milas requested a review from landism November 29, 2021 23:14
@milas milas self-assigned this Nov 29, 2021
Copy link
Member

@nicks nicks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wooooo path resolution semantics

@milas milas merged commit 30cd9b1 into master Nov 30, 2021
@milas milas deleted the milas/compose-go-upgrade branch November 30, 2021 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants