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

Fix deployment path inference #56

Merged
merged 2 commits into from
Nov 1, 2024
Merged

Conversation

smortex
Copy link
Member

@smortex smortex commented Oct 31, 2024

The deployment name is optional, but the way the deployment path was computed made it mandatory to provide it.

This revert the initial behavior where the deployment name is found by inspecting the content of the artifact to deploy when all files contained in this artifact are located in a single root directory.

Do not attempt to compute the deployment name when it is created as the
`name` is optional and if not provided, will be extracted after
downloading the artifact to deploy.

Fixes #55
When the artifact archive is created with `tar zcf filename.tgz .`, all
files path start with `./` but we do not want the application module to
believe that all files are under a `.` directory that can be used as the
deployment name.

Strip this `./` component to fix detection of a common root directory.
@smortex smortex requested review from a team as code owners October 31, 2024 21:24
@smortex smortex linked an issue Oct 31, 2024 that may be closed by this pull request
@smortex smortex added the bug Something isn't working label Oct 31, 2024
@smortex smortex changed the title Improve deployment path inference Fix deployment path inference Oct 31, 2024
@neomilium neomilium merged commit 0cfcdb4 into main Nov 1, 2024
8 checks passed
@neomilium neomilium deleted the defer-deployment-path-computing branch November 1, 2024 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deploying without deployment name is currently broken
2 participants