File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,18 @@ LAKE=${LAKE:-../../.lake/build/bin/lake}
99# Test Lake's behavior when failing to fetch a cloud release
1010# ---
1111
12+ # Since committing a Git repository to a Git repository is not well-supported,
13+ # We reinitialize the bar repository on each test. This requires updating the
14+ # locked manifest to the new hash to ensure things work properly.
15+ pushd dep
16+ git init
17+ git checkout -b master
18+ git config user.name test
19+ git config user.email
[email protected] 20+ git add --all
21+ git commit -m " initial commit"
22+ popd
23+
1224# Test that a direct invocation fo `lake build *:release` fails
1325($LAKE build dep:release && exit 1 || true) | diff -u --strip-trailing-cr <( cat << 'EOF '
1426✖ [1/1] Fetching dep:release
@@ -29,20 +41,8 @@ Build completed successfully.
2941EOF
3042) -
3143
32- # Since committing a Git repository to a Git repository is not well-supported,
33- # We reinitialize the bar repository on each test. This requires updating the
34- # locked manifest to the new hash to ensure things work properly.
35- pushd dep
36- git init
37- git checkout -b master
38- git config user.name test
39- git config user.email
[email protected] 40- git add --all
41- git commit -m " initial commit"
42- git tag release
43- popd
44-
4544# Test download failure
45+ git -C dep tag release
4646($LAKE build dep:release && exit 1 || true) | grep --color " downloading"
4747
4848# Test unpacking
You can’t perform that action at this time.
0 commit comments