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

Action failing due to missing pixi.lock #106

Closed
trallard opened this issue Oct 2, 2024 · 2 comments · Fixed by pydata/pydata-sphinx-theme#2003
Closed

Action failing due to missing pixi.lock #106

trallard opened this issue Oct 2, 2024 · 2 comments · Fixed by pydata/pydata-sphinx-theme#2003
Assignees

Comments

@trallard
Copy link

trallard commented Oct 2, 2024

Hey there, we recently bumped the upload-nightly-action to v6 in PyData Sphinx theme, though since doing so, this keeps failing on CI
with the following error:

Error: Failed to generate cache key: Error: ENOENT: no such file or directory, open 'pixi.lock'
    at /home/runner/work/_actions/prefix-dev/setup-pixi/ba3bb36eb2066252b2363392b7739741bb777659/dist/index.js:80915:9

It seems this is now expecting the project to have a Pixi.lock file, I am assuming this is coming from

locked: true

But this is not documented in the README, so I am not entirely sure. We do not use pixi, so what would then be the alternative? Would it be possible to expose the locked option so that the user can set to false in such cases?

@matthewfeickert
Copy link
Member

matthewfeickert commented Oct 2, 2024

@trallard v0.6.0 had a bug so please bump to v0.6.1. Depending on your Dependabot frequency you can either wait for it or use the version listed in the current README.

jobs:
steps:
...
- name: Upload wheel
uses: scientific-python/upload-nightly-action@82396a2ed4269ba06c6b2988bb4fd568ef3c3d6b # 0.6.1
with:
artifacts_path: dist
anaconda_nightly_upload_token: ${{secrets.UPLOAD_TOKEN}}

The projects using the uploader are not required to use pixi, we had a path resolver issue in the action not caught by local testing that was resolved with v0.6.1 thanks to @MridulS.

(Apologies for typos. I'm responding on phone.)

@matthewfeickert
Copy link
Member

matthewfeickert commented Oct 2, 2024

I've gone through every project currently listed in #30 (comment) and verified that they either aren't using the action or were on the "right" side of the Dependabot schedule to get the v0.6.1 update. If they were on v0.6.0 I've opened a PR to fix.

Note to future self: Having projects use Depenabot to manage their GitHub Actions helps a lot in being able to quickly diagnose if people are affected by bugs in releases or not. 👍

@matthewfeickert matthewfeickert self-assigned this Oct 2, 2024
gabalafou pushed a commit to gabalafou/pydata-sphinx-theme that referenced this issue Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants