From 6aedbafae1094ad6574f2e1f10298024442a4fd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Vask=C3=B3?= <1771332+vlaci@users.noreply.github.com> Date: Tue, 12 Nov 2024 10:49:23 +0100 Subject: [PATCH] devenv: fix overwriting read-only `.pth` file when dependencies change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- flake.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index dbfb25f806..e1d7dd82c3 100644 --- a/flake.lock +++ b/flake.lock @@ -182,11 +182,11 @@ "pre-commit-hooks": "pre-commit-hooks_2" }, "locked": { - "lastModified": 1730287473, - "narHash": "sha256-6bMC/lXMcC4Cl2JrPC934h5/E6cBMQJExv4dK9/Oga8=", + "lastModified": 1731404779, + "narHash": "sha256-FXt/Quz1W9Uae6JhKAVEqM306H4dQk6wSINGBwRaW7g=", "owner": "vlaci", "repo": "devenv", - "rev": "385d38cfb6872e7f95cae30d94f7fc4afd23fd76", + "rev": "4caf75b37c5d633fde612cd52bb794bcbf75d24a", "type": "github" }, "original": {