Skip to content

Commit cbef14d

Browse files
authored
chore(ci): prevent downloads of Tact from npm in tact-template tests (#1817)
* fix: use powershell-specific `mv` command The `mv` there is an alias to `Move-Item`, but the flags differ a bit. For clarity, I've decided to explicitly use the underlying command.
1 parent 84c033d commit cbef14d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/tact.yml

+6
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ jobs:
8686
# !!!!!!! Don't forget to update test-windows below !!!!!!!
8787
git clone https://github.com/tact-lang/tact-template.git
8888
cd tact-template
89+
# Hijack the dependency on Tact to avoid redundant npm downloads
90+
jq 'del(.dependencies."@tact-lang/compiler")' package.json -M > temp.json
91+
mv temp.json package.json
8992
yarn install
9093
yarn link @tact-lang/compiler
9194
yarn build
@@ -107,6 +110,9 @@ jobs:
107110
$ErrorActionPreference = 'Stop'
108111
git clone https://github.com/tact-lang/tact-template.git
109112
cd tact-template
113+
# Hijack the dependency on Tact to avoid redundant npm downloads
114+
jq 'del(.dependencies."@tact-lang/compiler")' package.json -M | Set-Content temp.json
115+
Move-Item temp.json package.json -Force
110116
yarn install
111117
yarn link @tact-lang/compiler
112118
yarn build

0 commit comments

Comments
 (0)