GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Don't update the user's shell config files if VOLTA_HOME and PATH already contains what we need. by dsully · Pull Request #990 · volta-cli/volta

Conversation

@dsully

@dsully dsully commented May 8, 2021

Copy link
Copy Markdown
Contributor

This will prevent changes when these settings are defined in a different, but compatible way to what volta does.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dsully
Don't update the user's shell config files if VOLTA_HOME and PATH alr…
4c14853
…eady contain what we need.
charlespierce
charlespierce requested changes May 10, 2021
View reviewed changes

@charlespierce charlespierce left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Thanks @dsully! Looks mostly good, just a couple of small tweaks to make sure things work as expected and are easier to debug later on.

Also, would you mind creating a follow-on issue to add a --force or similar flag? It's not necessary for this PR, but would be good to track the need for something like that in case we want to have the ability to force it through even given the environment appears to be properly set up.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/command/setup.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/command/setup.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

@charlespierce

charlespierce commented May 10, 2021

Copy link
Copy Markdown
Contributor

Looks like the changes need to have cargo fmt run on them. Also the Windows builds are failing for some unrelated reason, it appears, I'll investigate that separately.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dsully and others added 2 commits May 10, 2021 13:01
@dsully @charlespierce
Update src/command/setup.rs
9290529
Co-authored-by: Charles Pierce <[email protected]>
@dsully
Add debug!() and cargo fmt.
b856df8
@dsully dsully mentioned this pull request May 10, 2021
Add a --force option to "volta setup" #992
Open
@dsully

dsully commented May 10, 2021

Copy link
Copy Markdown
Contributor Author

Done & done!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

charlespierce
charlespierce requested changes May 10, 2021
View reviewed changes

@charlespierce charlespierce left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

One more small change (that may need cargo fmt run again afterwards).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/command/setup.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

dsully added 2 commits May 10, 2021 13:41
@dsully
Remove unneeded braces.
a78eb00
@dsully
Re-add shim_dir change.
6e2129c
charlespierce
charlespierce approved these changes May 10, 2021
View reviewed changes

@charlespierce charlespierce left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM, thanks! The CI failures are unrelated and fixed in #993, once that's merged I'll merge this and then confirm that everything passes post-merge.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@charlespierce
charlespierce merged commit 4567250 into volta-cli:main May 10, 2021
@miikka miikka mentioned this pull request May 18, 2021
volta update through homebrew requires to run volta setup again #927
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@charlespierce charlespierce charlespierce approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@dsully @charlespierce
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.