Skip to content

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
${{ 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.

3 participants