You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by ti...@apache.org on 2024/04/24 12:45:49 UTC

(incubator-kie-tools) branch main updated: NO-ISSUE: Nix.dev: Moving PATH around so DevBox path is first (#2255)

This is an automated email from the ASF dual-hosted git repository.

tiagobento pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git


The following commit(s) were added to refs/heads/main by this push:
     new b1c04f97a4f NO-ISSUE: Nix.dev: Moving PATH around so DevBox path is first (#2255)
b1c04f97a4f is described below

commit b1c04f97a4f55c9347147b2eb4c5b4b4eca0928d
Author: Jason Porter <li...@gmail.com>
AuthorDate: Wed Apr 24 06:45:45 2024 -0600

    NO-ISSUE: Nix.dev: Moving PATH around so DevBox path is first (#2255)
---
 devbox.json | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/devbox.json b/devbox.json
index 9627108022d..9ab08fec2e4 100644
--- a/devbox.json
+++ b/devbox.json
@@ -17,10 +17,13 @@
     "DEVBOX_COREPACK_ENABLED": "true",
     "GOFLAGS": "-modcacherw",
     "GOPATH": "$DEVBOX_PROJECT_ROOT/.devbox/gopkgs",
-    "PATH": "$PATH:$DEVBOX_PROJECT_ROOT/.devbox/gopkgs/bin"
+    "PATH": "$DEVBOX_PROJECT_ROOT/.devbox/gopkgs/bin:$PATH"
   },
   "shell": {
-    "init_hook": [". $VENV_DIR/bin/activate"],
+    "init_hook": [
+      ". $VENV_DIR/bin/activate",
+      "[[ $OSTYPE == 'darwin'* ]] && export PATH=$(echo $PATH | tr ':' '\n' | sed '\\|^/nix/store/|d' | paste -sd ':' -)"
+    ],
     "scripts": {
       "versions": [
         "java --version && mvn -v && node -v && pnpm -v && go version && helm version && make -v && python --version && pip --version"


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org