Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Dec 13, 2024
1 parent bad0d5e commit 68e8bdb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,16 @@ def _proto_activate_hook [] {

$data | get env | items { |k, v|
if $v == null {
hide_env $k
hide-env $k
} else {
load-env { ($k): $v }
}
}

let path_list = $env.__ORIG_PATH | split row (char esep)

$data | get paths | reverse | each { |p|
let path_list = ($path_list | prepend $p)
}
let path_list = [
...($data | get paths | default [])
...($env.__ORIG_PATH | split row (char esep))
];

$env.PATH = ($path_list | uniq)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
source: crates/cli/tests/outdated_test.rs
expression: "vec![fs::read_to_string(sandbox.path().join(\".proto/.prototools\")).unwrap(),\n fs::read_to_string(sandbox.path().join(\"a/.prototools\")).unwrap(),\n fs::read_to_string(sandbox.path().join(\"a/b/.prototools\")).unwrap(),]"
expression: "vec![fs::read_to_string(sandbox.path().join(\".proto/.prototools\")).unwrap(),\nfs::read_to_string(sandbox.path().join(\"a/.prototools\")).unwrap(),\nfs::read_to_string(sandbox.path().join(\"a/b/.prototools\")).unwrap(),]"
---
[
"go = \"1.19.13\"\n",
"node = \"19.9.0\"\n",
"npm = \"9.9.3\"\n",
"npm = \"9.9.4\"\n",
]

0 comments on commit 68e8bdb

Please sign in to comment.