mirror of
https://github.com/enso-org/enso.git
synced 2024-11-22 03:32:23 +03:00
Build script: git-clean and cwd fixes (#8424)
This commit is contained in:
parent
b6bdf901a9
commit
a04a2cc849
@ -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 crate::arg::git_clean::Options { dry_run, cache, build_script } = options;
|
||||||
let mut exclusions = vec![".idea"];
|
let mut exclusions = vec![".idea"];
|
||||||
if !build_script {
|
if !build_script {
|
||||||
exclusions.push("target/enso-build");
|
exclusions.push("target/rust/buildscript");
|
||||||
}
|
}
|
||||||
|
|
||||||
if !dry_run {
|
if !dry_run {
|
||||||
|
6
run
6
run
@ -1,4 +1,10 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -e # Exit on error.
|
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 -- $@
|
cargo run --profile buildscript --package enso-build-cli -- $@
|
||||||
|
|
||||||
|
# Revert to the original working directory.
|
||||||
|
popd > /dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user