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

test(command-lm): add uninstall command #1879

Merged
merged 2 commits into from
Feb 15, 2021
Merged

Conversation

erezrokah
Copy link
Contributor

Follow up to #1489.

Adds a hidden command to undo the changes made by ntl lm:install (to be used by our tests).

@erezrokah erezrokah requested a review from a team as a code owner February 14, 2021 17:57
@github-actions github-actions bot added the type: chore work needed to keep the product and development running smoothly label Feb 14, 2021
@erezrokah erezrokah changed the title test(command-lm): add cleanup test(command-lm): add uninstall command Feb 14, 2021
const getGitConfigContent = (gitConfigPath) => `
# This next lines include Netlify's Git Credential Helper configuration in your Git configuration.
[include]
path = ${path.posix.normalize(gitConfigPath)}
Copy link
Contributor

@ehmicky ehmicky Feb 15, 2021

Choose a reason for hiding this comment

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

This might not work as expected.
path.posix.normalize() actually returns backslashes on Windows (which is confusing).

Is the intent to only use forward slashes? If so, I have personally used this unmaintained package: https://github.com/jonschlinkert/unixify (we use it in zip-it-and-ship-it). If you find a better package, I'd be curious to learn about it too :)

Edit: I am realizing this change was not introduced by the current PR, so please feel free to ignore for this PR.

@erezrokah erezrokah merged commit 8b0e0ad into master Feb 15, 2021
@erezrokah erezrokah deleted the test/command_lm_uninstall branch February 15, 2021 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants