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

devenv: fix overwriting read-only .pth file when dependencies change #1007

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

vlaci
Copy link
Contributor

@vlaci vlaci commented Nov 12, 2024

This update fixes the following error:

--- devenv:python:poetry failed with error: Task exited with status: exit status: 1
--- devenv:python:poetry stdout:
0001.44: ~/devel/git/github.com/onekey-sec/unblob ~/devel/git/github.com/onekey-sec/unblob
0000.23: Installing dependencies from lock file
0000.07:
0000.07: No dependencies to install or update
0000.07:
0000.07: Installing the current project: unblob (24.9.30)
--- devenv:python:poetry stderr:
0000.00: cp: cannot create regular file '.venv/lib/python3.12/site-packages/devenv.pth': Permission denied

We are creating a symlink to the nix-store instead of copying a read-only file.


Flake lock file updates:

• Updated input 'devenv':
'github:vlaci/devenv/385d38cfb6872e7f95cae30d94f7fc4afd23fd76' (2024-10-30)
→ 'github:vlaci/devenv/4caf75b37c5d633fde612cd52bb794bcbf75d24a' (2024-11-12)

@vlaci vlaci requested a review from e3krisztian November 12, 2024 09:52
@vlaci vlaci self-assigned this Nov 12, 2024
@qkaiser qkaiser enabled auto-merge November 13, 2024 17:17
This update fixes the following error:

    --- devenv:python:poetry failed with error: Task exited with status: exit status: 1
    --- devenv:python:poetry stdout:
    0001.44: ~/devel/git/github.com/onekey-sec/unblob ~/devel/git/github.com/onekey-sec/unblob
    0000.23: Installing dependencies from lock file
    0000.07:
    0000.07: No dependencies to install or update
    0000.07:
    0000.07: Installing the current project: unblob (24.9.30)
    --- devenv:python:poetry stderr:
    0000.00: cp: cannot create regular file '.venv/lib/python3.12/site-packages/devenv.pth': Permission denied

We are creating a symlink to the nix-store instead of copying a
read-only file.

---

Flake lock file updates:

• Updated input 'devenv':
    'github:vlaci/devenv/385d38cfb6872e7f95cae30d94f7fc4afd23fd76' (2024-10-30)
  → 'github:vlaci/devenv/4caf75b37c5d633fde612cd52bb794bcbf75d24a' (2024-11-12)
@qkaiser qkaiser merged commit 5e1ce27 into main Nov 13, 2024
15 checks passed
@qkaiser qkaiser deleted the devenv-update branch November 13, 2024 17:56
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