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(nodejs): apply style even if node version is unavailable #4713

Merged
merged 6 commits into from Jan 10, 2023

Conversation

Andree37
Copy link
Contributor

Description

Allowed nodejs_version to be unset (node isn't installed) and assign the node configuration

Motivation and Context

Closes #4705

Screenshots (if appropriate):

image

How Has This Been Tested?

  • I have tested using MacOS
  • I have tested using Linux
  • I have tested using Windows

Checklist:

  • I have updated the documentation accordingly.
  • I have updated the tests accordingly.

I don't believe they are applicable.

@davidkna davidkna changed the title Correct Nodejs symbol fix(nodejs): apply style even if node version is unavailable Dec 26, 2022
Copy link
Member

@davidkna davidkna left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

Please also write a test case for this problem (try using .cmd-mocking from ModuleRenderer), and if possible, please also fix the other things I pointed out.

src/modules/nodejs.rs Outdated Show resolved Hide resolved
src/modules/nodejs.rs Outdated Show resolved Hide resolved
Andree37 and others added 5 commits January 4, 2023 19:12
Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
@Andree37
Copy link
Contributor Author

Andree37 commented Jan 4, 2023

I've added an unit test and applied the commits that you mentioned.
:)

@Andree37 Andree37 requested a review from davidkna January 4, 2023 20:37
@andytom andytom merged commit e88484d into starship:master Jan 10, 2023
@andytom
Copy link
Member

andytom commented Jan 10, 2023

Thank you for your contribution @Andree37

Indyandie pushed a commit to Indyandie/starship that referenced this pull request Jul 26, 2023
…hip#4713)

* correct nodejs color

* Update src/modules/nodejs.rs

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>

* Update src/modules/nodejs.rs

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>

* fix: removed unecessary unwraps

* test: no node installed

* test: no node installed

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants