Build script: git-clean and cwd fixes (#8424)

This commit is contained in:
Michał Wawrzyniec Urbańczyk 2023-11-29 20:35:06 +01:00 committed by GitHub
parent b6bdf901a9
commit a04a2cc849
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -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 {

6
run
View File

@ -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