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(cli): Environment name at env creation (#397) #404

Merged
merged 1 commit into from
Oct 12, 2020

Conversation

mwasilew2
Copy link
Contributor

Environment name is the relative path of an env dir. tk env add is incorrectly
using the base dir name. This PR fixes it.

jpath pkg is used to benefit from the existing implementation. FindRoot function
is made public instead of using Resolve because Resolve does many other things
as well, some of which require files that don't exist at that time.

Signed-off-by: Michal Wasilewski mwasilewski@gmx.com

Environment name is the relative path of an env dir. tk env add is incorrectly
using the base dir name. This PR fixes it.

jpath pkg is used to benefit from the existing implementation. FindRoot function
is made public instead of using Resolve because Resolve does many other things
as well, some of which require files that don't exist at that time.

Signed-off-by: Michal Wasilewski <mwasilewski@gmx.com>
Copy link
Member

@sh0rez sh0rez left a comment

Choose a reason for hiding this comment

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

Wow, thanks for fixing this!!

@sh0rez sh0rez merged commit 111cbd5 into grafana:master Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants