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: Stable environment name #182

Merged
merged 4 commits into from
Jan 27, 2020
Merged

fix: Stable environment name #182

merged 4 commits into from
Jan 27, 2020

Conversation

sh0rez
Copy link
Member

@sh0rez sh0rez commented Jan 23, 2020

Cherry-picks commits cbc2c66 and 8012c65 from #131, because they are a needed enhancement but the other PR is not going to be merged soon

Before, the name of the internally used Environment type was different depending
on the argument passed on the command line, even though it resulted in the same
environment after all (relative vs absolute paths, etc.)

This fixes the issue by using the `jpath` package to compute baseDir and
rootDir, using the relative path from rootDir to baseDir as the name. This
results in stable names, regardless which directory representation is used.
All of our current commands take environments, only the import analysis works on
plain files ... this has no benefit, it actually makes the implementation
harder, as we cannot use stable paths there.

Switches to environments as the target.
@sh0rez sh0rez requested a review from rfratto January 23, 2020 08:32
@sh0rez sh0rez added component/kubernetes Working with Kubernetes clusters kind/bug Something isn't working labels Jan 23, 2020
Copy link
Contributor

@slim-bean slim-bean left a comment

Choose a reason for hiding this comment

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

LGTM!

@sh0rez sh0rez merged commit 3022dab into master Jan 27, 2020
@sh0rez sh0rez deleted the stable-name branch January 27, 2020 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/kubernetes Working with Kubernetes clusters kind/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants