From ada221020b9cb57e70055cd57516c135311ddba3 Mon Sep 17 00:00:00 2001 From: BAK BYEONG JUN Date: Sat, 26 Apr 2025 01:08:36 +0000 Subject: [PATCH] init --- tasks/rust-nx-merge/task.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tasks/rust-nx-merge/task.yaml b/tasks/rust-nx-merge/task.yaml index 0fa5fd5..b30205a 100644 --- a/tasks/rust-nx-merge/task.yaml +++ b/tasks/rust-nx-merge/task.yaml @@ -78,6 +78,7 @@ spec: for TARGET in "$@"; do SRC=$(echo "$SOURCES" | cut -d' ' -f1) SOURCES=$(echo "$SOURCES" | cut -s -d' ' -f2-) + TARGET_PATH="/workspace/base/$(params.context)/source/$(params.workspaceName)/${TARGET}"" ls -al $SRC/src @@ -89,11 +90,11 @@ spec: fi cd - - echo "Importing: $SRC → $TARGET" - npx nx import --sourceDirectory="$SRC" --destinationDirectory="$TARGET" --interactive=false --ref=main + echo "Importing: $SRC → $TARGET_PATH" + npx nx import --sourceDirectory="$SRC" --destinationDirectory="$TARGET_PATH" --interactive=false --ref=main echo "Updating version to $(params.version)" - sed -i.bak "s/^version = .*/version = \"$(params.version)\"/" "$TARGET/Cargo.toml" - rm -f "$TARGET/Cargo.toml.bak" + sed -i.bak "s/^version = .*/version = \"$(params.version)\"/" "$TARGET_PATH/Cargo.toml" + rm -f "$TARGET_PATH/Cargo.toml.bak" # destination(monorepo) 변경사항 커밋 또는 리셋 git add .