Skip to content

Commit

Permalink
env-man
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 26, 2024
1 parent b76d21c commit a9461d4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion e2e/test_go_install
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ source "$(dirname "$0")/assert.sh"
export MISE_EXPERIMENTAL=1

assert "mise x go:github.com/DarthSim/hivemind@v1.1.0 -- hivemind --version" "Hivemind version 1.1.0"
chmod -R u+w "$MISE_DATA_DIR/cache/go-"*
chmod -R u+w "$MISE_DATA_DIR/cache/go-"* || true
3 changes: 0 additions & 3 deletions src/config/config_file/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ pub trait ConfigFile: Debug + Send + Sync {
fn env_entries(&self) -> Vec<EnvDirective> {
Default::default()
}
fn env_paths(&self) -> Result<Vec<PathBuf>> {
Ok(Default::default())
}
fn tasks(&self) -> Vec<&Task> {
Default::default()
}
Expand Down
1 change: 1 addition & 0 deletions src/config/env_directive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ impl EnvResults {
for (directive, source) in input {
let config_root = source.parent().unwrap();
ctx.insert("config_root", config_root);
ctx.insert("env", &env);
let normalize_path = |s: String| {
let s = s.strip_prefix("./").unwrap_or(&s);
match s.strip_prefix("~/") {
Expand Down

0 comments on commit a9461d4

Please sign in to comment.