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

Try to fix Nushell install #2444

Merged
merged 1 commit into from Nov 10, 2022
Merged

Try to fix Nushell install #2444

merged 1 commit into from Nov 10, 2022

Conversation

kubouch
Copy link
Contributor

@kubouch kubouch commented Nov 10, 2022

Because e4a42c6 didn't seem to solve the issue, this is an alternative solution.

Thanks for contributing, make sure you address all the checklists (for details on how see development documentation)!

  • ran the linter to address style issues (tox -e fix_lint)
  • wrote descriptive pull request text
  • ensured there are test(s) validating the fix
  • added news fragment in docs/changelog folder
  • updated/extended the documentation

Because pypa@e4a42c6 didn't seem to solve the issue, this is an alternative solution.
@kubouch kubouch changed the title Try to Nushell install Try to fix Nushell install Nov 10, 2022
@@ -45,8 +45,8 @@ jobs:
${{ runner.os == 'Linux' && 'sudo apt-get install curl wget -y' || true }} && \
${{ runner.os == 'Linux' && 'nushell_url=$(curl -s https://api.github.com/repos/nushell/nushell/releases/latest | grep "browser_" | grep "x86_64" | grep "linux" | grep "gnu" | cut -d\" -f4 )' || true }} && \
${{ runner.os == 'Linux' && 'wget -O nushell.tar.gz $nushell_url' || true }} && \
${{ runner.os == 'Linux' && 'tar -zxf --strip-components=1 nushell.tar.gz' || true }} && \
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems easier to just make this

tar -zxf nushell.tar.gz --strip-components=1

instead of trying to glob the file path

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That was tried before but didn't work

Copy link
Contributor

Choose a reason for hiding this comment

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

There's a very important order of arguments. GNU Tar requires a filename immediately after -f. Currently --strip-components=1 is being interpreted as a filename and is invalid. it needs to be placed after the filename or before the other arguments.

Copy link
Contributor

Choose a reason for hiding this comment

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

The problem with pattern matching is that if the triplet changes, this will break again. using --strip-components obviates that.

just my $.02

@gaborbernat gaborbernat merged commit dbc57c2 into pypa:main Nov 10, 2022
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.

None yet

3 participants