-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
twine: command not found #112
Comments
I get: /app/twine-upload.sh: line 35: twine: command not found This might be due to the recent Ubuntu upgrade. ubuntu-latest now points to 22, it was 20 before.
Ok, this does not seem to be the problem. I get the same problem with |
The action runtime is a docker container. Your runner VM setting does not influence what's inside. |
Side note: calling |
Do you have a workflow run link so I could take a look at the logs? |
No, just a few minutes ago. |
https://github.com/rwth-i6/returnn/actions/runs/3629006064/jobs/6120696860 |
I get: /app/twine-upload.sh: line 35: twine: command not found pypa/gh-action-pypi-publish#112
I wonder if the parent image has changed somehow... Although, it is weird since the PATH var is being set in ours regardless. |
There shouldn't be any significant difference but could you try |
I also tried |
Same error. https://github.com/rwth-i6/returnn/actions/runs/3629576346/jobs/6121942005 |
Is there anything else I can try? Some workaround? Do you have an idea what's wrong? |
I now tried
|
Kinda. It seems like the |
Oh wait. I see what's happening. GitHub executes the container with P.S. You are setting your var wrong anyway — |
Thanks! |
Hm now I tried:
(fedca4a) |
Thanks for reporting the new log. I've realized that the problem is even deeper. Moreover, it'd affect any container-based action and is not technically our bug. |
This patch imports the system-global profile script to populate the `$PATH` variable with the typically available binary paths. Ref: #112 (comment)
I'm not too familiar with GHA but aren't there other actions which also modify If you don't want to inherit |
I'm not entirely sure that it uses the same mechanism for setting up the env.
It's not specific to this var, any var that you set will be passed as if you've set the |
v1.6.3 should work even with your broken path. |
I thought that |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://github.com/actions/checkout) | action | minor | `v3.1.0` -> `v3.2.0` | | [ossf/scorecard-action](https://github.com/ossf/scorecard-action) | action | minor | `v2.0.6` -> `v2.1.2` | | [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) | action | patch | `v1.6.1` -> `v1.6.4` | --- ### Release Notes <details> <summary>actions/checkout</summary> ### [`v3.2.0`](https://github.com/actions/checkout/releases/tag/v3.2.0) [Compare Source](https://github.com/actions/checkout/compare/v3.1.0...v3.2.0) #### What's Changed - Add GitHub Action to perform release by [@​rentziass](https://github.com/rentziass) in [actions/checkout#942 - Fix status badge by [@​ScottBrenner](https://github.com/ScottBrenner) in [actions/checkout#967 - Replace datadog/squid with ubuntu/squid Docker image by [@​cory-miller](https://github.com/cory-miller) in [actions/checkout#1002 - Wrap pipeline commands for submoduleForeach in quotes by [@​jokreliable](https://github.com/jokreliable) in [actions/checkout#964 - Update [@​actions/io](https://github.com/actions/io) to 1.1.2 by [@​cory-miller](https://github.com/cory-miller) in [actions/checkout#1029 - Upgrading version to 3.2.0 by [@​vmjoseph](https://github.com/vmjoseph) in [actions/checkout#1039 #### New Contributors - [@​ScottBrenner](https://github.com/ScottBrenner) made their first contribution in [actions/checkout#967 - [@​cory-miller](https://github.com/cory-miller) made their first contribution in [actions/checkout#1002 - [@​jokreliable](https://github.com/jokreliable) made their first contribution in [actions/checkout#964 - [@​vmjoseph](https://github.com/vmjoseph) made their first contribution in [actions/checkout#1039 **Full Changelog**: actions/checkout@v3...v3.2.0 </details> <details> <summary>ossf/scorecard-action</summary> ### [`v2.1.2`](https://github.com/ossf/scorecard-action/releases/tag/v2.1.2) [Compare Source](https://github.com/ossf/scorecard-action/compare/v2.1.1...v2.1.2) #### What's Changed ##### Fixes - 🌱 Bump scorecard dependency to v4.10.2 to remove a CODEOWNERS printf statement. by [@​spencerschrock](https://github.com/spencerschrock) in [ossf/scorecard-action#1054 **Full Changelog**: ossf/scorecard-action@v2.1.1...v2.1.2 ### [`v2.1.1`](https://github.com/ossf/scorecard-action/releases/tag/v2.1.1) [Compare Source](https://github.com/ossf/scorecard-action/compare/v2.1.0...v2.1.1) #### Scorecard version This release use [Scorecard's v4.10.1](https://github.com/ossf/scorecard/releases/tag/v4.10.1) **Full Changelog**: ossf/scorecard-action@v2.1.0...v2.1.1 ### [`v2.1.0`](https://github.com/ossf/scorecard-action/releases/tag/v2.1.0) [Compare Source](https://github.com/ossf/scorecard-action/compare/v2.0.6...v2.1.0) #### What's Changed ##### Scorecard version This release uses [scorecard v4.10.0](https://github.com/ossf/scorecard/releases/tag/v4.10.0). ##### Improvements - Docker build workflow by [@​naveensrinivasan](https://github.com/naveensrinivasan) in [ossf/scorecard-action#981 - Use root user in distroless to support GitHub Actions by [@​spencerschrock](https://github.com/spencerschrock) in [ossf/scorecard-action#994 - Disable pull_request_target by [@​laurentsimon](https://github.com/laurentsimon) in [ossf/scorecard-action#1031 ##### Documentation - Add PAT section explaining risks by [@​olivekl](https://github.com/olivekl) in [ossf/scorecard-action#1024 - Make the badge text easier to copy by [@​rajbos](https://github.com/rajbos) in [ossf/scorecard-action#1026 #### New Contributors - [@​joycebrum](https://github.com/joycebrum) made their first contribution in [ossf/scorecard-action#984 - [@​rajbos](https://github.com/rajbos) made their first contribution in [ossf/scorecard-action#1026 **Full Changelog**: ossf/scorecard-action@v2.0.6...v2.1.0 </details> <details> <summary>pypa/gh-action-pypi-publish</summary> ### [`v1.6.4`](https://github.com/pypa/gh-action-pypi-publish/releases/tag/v1.6.4) [Compare Source](https://github.com/pypa/gh-action-pypi-publish/compare/v1.6.3...v1.6.4) #### oh, boi! again? This is the last one tonight, promise! It fixes this embarrassing bug that was actually caught by the CI but got overlooked due to the lack of sleep. TL;DR GH passed `$HOME` from the external env into the container and that tricked the Python's `site` module to think that the home directory is elsewhere, adding non-existent paths to the env vars. See [#​115](https://github.com/pypa/gh-action-pypi-publish/issues/115). **Full Diff**: pypa/gh-action-pypi-publish@v1.6.3...v1.6.4 ### [`v1.6.3`](https://github.com/pypa/gh-action-pypi-publish/releases/tag/v1.6.3) [Compare Source](https://github.com/pypa/gh-action-pypi-publish/compare/v1.6.2...v1.6.3) ### Another Release!? Why? In [pypa/gh-action-pypi-publish#112 (comment), it was discovered that passing a `$PATH` variable even breaks the shebang. So this version adds more safeguards to make sure it keeps working with a fully broken `$PATH`. **Full Diff**: pypa/gh-action-pypi-publish@v1.6.2...v1.6.3 ### [`v1.6.2`](https://github.com/pypa/gh-action-pypi-publish/releases/tag/v1.6.2) [Compare Source](https://github.com/pypa/gh-action-pypi-publish/compare/v1.6.1...v1.6.2) #### What's Fixed - Made the `$PATH` and `$PYTHONPATH` environment variables resilient to broken values passed from the host runner environment, which previously allowed the users to accidentally break the container's internal runtime as reported in [pypa/gh-action-pypi-publish#112 #### Internal Maintenance Improvements - Added a devpi-based smoke-test GitHub Actions CI/CD workflow by [@​sesdaile-varmour](https://github.com/sesdaile-varmour) in [pypa/gh-action-pypi-publish#111 #### New Contributors - [@​sesdaile-varmour](https://github.com/sesdaile-varmour) made their first contribution in [pypa/gh-action-pypi-publish#111 **Full Diff**: pypa/gh-action-pypi-publish@v1.6.1...v1.6.2 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 6am on monday" in timezone Australia/Sydney, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/google/osv.dev). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4yNC4wIiwidXBkYXRlZEluVmVyIjoiMzQuNzMuMyJ9-->
It has all worked for a long time, but now I get:
I assume this is because I use
ubuntu-latest
which has now been upgraded to Ubuntu 22?My GitHub actions file:
The text was updated successfully, but these errors were encountered: