Skip to content

Commit

Permalink
Build script: git-clean and cwd fixes (#8424)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwu-tow authored Nov 29, 2023
1 parent b6bdf90 commit a04a2cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ pub async fn main_internal(config: Option<Config>) -> Result {
let crate::arg::git_clean::Options { dry_run, cache, build_script } = options;
let mut exclusions = vec![".idea"];
if !build_script {
exclusions.push("target/enso-build");
exclusions.push("target/rust/buildscript");
}

if !dry_run {
Expand Down
6 changes: 6 additions & 0 deletions run
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/usr/bin/env bash
set -e # Exit on error.

# Change working directory to the script's directory.
pushd "$(dirname "$0")" > /dev/null

cargo run --profile buildscript --package enso-build-cli -- $@

# Revert to the original working directory.
popd > /dev/null

0 comments on commit a04a2cc

Please sign in to comment.