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: make the cli runnable on windows #326

Merged
merged 8 commits into from
Feb 9, 2024
Merged

fix: make the cli runnable on windows #326

merged 8 commits into from
Feb 9, 2024

Conversation

bakito
Copy link
Contributor

@bakito bakito commented Nov 14, 2022

As as already mentioned in #306, the cli is not running properly in windows, as the parent dir of the config file is not evaluated correctly.

This PR fixes this and uses also os.UserHomeDir() to evaluate the home dir of the user instead of just expanding the HOME variable.

macedogm and others added 5 commits August 11, 2023 09:40
Signed-off-by: Guilherme Macedo <guilherme@gmacedo.com>
Signed-off-by: Guilherme Macedo <guilherme@gmacedo.com>
[v2.7] Update saml auth login endpoint to point toward dashboard endpoint
@HarrisonWAffel
Copy link
Contributor

HarrisonWAffel commented Dec 7, 2023

👋 @bakito Thanks for raising this PR, and apologies for the long delay in any response.

If you're still willing, I'd be happy to work with you to get this PR into shape so it can be merged. My only concern being the use of github.com/mitchellh/go-homedir, as that packages implementation almost exactly matches the implementation in the standard library. In this situation using the standard library is preferable.

If you could update this PR so that it no longer uses github.com/mitchellh/go-homedir, then I'll make sure it gets merged in the near future. If you're no longer in a position where you can update this PR, no worries, we plan on fixing this issue soon one way or another.

(rancher/rancher#31967)

bakito and others added 2 commits December 7, 2023 20:45
@bakito
Copy link
Contributor Author

bakito commented Dec 7, 2023

Hi @HarrisonWAffel

This should do the trick.

HarrisonWAffel
HarrisonWAffel previously approved these changes Dec 7, 2023
Copy link
Contributor

@HarrisonWAffel HarrisonWAffel left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks for the contribution

@HarrisonWAffel HarrisonWAffel requested a review from a team December 7, 2023 22:26
@HarrisonWAffel HarrisonWAffel changed the base branch from v2.7 to v2.9 February 8, 2024 15:23
@HarrisonWAffel HarrisonWAffel dismissed their stale review February 8, 2024 15:23

The base branch was changed.

@HarrisonWAffel HarrisonWAffel merged commit 834388e into rancher:v2.9 Feb 9, 2024
1 check passed
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.

5 participants