Skip to content

Commit f9ffd04

Browse files
authored
Merge pull request ActiveState#3488 from ActiveState/mitchell/dx-3041
Wrong libc should be an input error.
2 parents dd41b0c + dbf0ec8 commit f9ffd04

File tree

6 files changed

+20
-16
lines changed

6 files changed

+20
-16
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868

6969
- # === Install Go ===
7070
name: Install Go
71-
uses: actions/setup-go@v3
71+
uses: actions/setup-go@v5
7272
with:
7373
go-version: ${{ matrix.go-version }}
7474

@@ -392,7 +392,7 @@ jobs:
392392

393393
- # === Upload Session Artifacts ===
394394
name: Upload Session Artifacts
395-
uses: actions/upload-artifact@v2
395+
uses: actions/upload-artifact@v4
396396
with:
397397
name: session-build-${{ matrix.sys.os }}
398398
path: build/
@@ -404,9 +404,10 @@ jobs:
404404
runs-on: ubuntu-latest
405405
steps:
406406
- name: Download All Build Session Artifacts
407-
uses: actions/download-artifact@v2
407+
uses: actions/download-artifact@v4
408408
with:
409409
path: build/
410+
merge-multiple: true
410411

411412
- name: Scan for CVEs
412413
if: runner.os == 'Linux'
@@ -444,7 +445,7 @@ jobs:
444445

445446
- # === Install Go ===
446447
name: Install Go
447-
uses: actions/setup-go@v3
448+
uses: actions/setup-go@v5
448449
with:
449450
go-version: 1.22.x
450451

@@ -454,9 +455,10 @@ jobs:
454455

455456
- # === Download All Build Session Artifacts ===
456457
name: Download All Build Session Artifacts
457-
uses: actions/download-artifact@v2
458+
uses: actions/download-artifact@v4
458459
with:
459460
path: build/
461+
merge-multiple: true
460462

461463
- # === Sanitize All Session Artifacts ===
462464
name: Sanitize All Session Artifacts
@@ -501,7 +503,7 @@ jobs:
501503
502504
- # === Cleanup Session Artifacts ===
503505
name: Cleanup Session Artifacts
504-
uses: geekyeggo/delete-artifact@v1
506+
uses: geekyeggo/delete-artifact@v5
505507
with:
506508
name: |
507509
session-build-ubuntu-20.04
@@ -510,7 +512,7 @@ jobs:
510512
511513
- # === Upload Artifacts ===
512514
name: Upload Artifacts
513-
uses: actions/upload-artifact@v2
515+
uses: actions/upload-artifact@v4
514516
with:
515517
name: build
516518
path: build/

.github/workflows/propagate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ jobs:
2525

2626
- # === Checkout code ===
2727
name: Checkout code
28-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
2929
with:
3030
fetch-depth: 0
3131
token: ${{ secrets.GH_AUTOMATION_TOKEN }}
3232

3333
- # === Install Go ===
3434
name: Install Go
35-
uses: actions/setup-go@v3
35+
uses: actions/setup-go@v5
3636
with:
3737
go-version: '1.22.x'
3838

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
steps:
2626
- # Checkout Code
2727
name: Checkout code
28-
uses: actions/checkout@v2
28+
uses: actions/checkout@v5
2929

3030
- # === Install Go ===
3131
name: Install Go

.github/workflows/verify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
- # === Install Go ===
3636
name: Install Go
37-
uses: actions/setup-go@v3
37+
uses: actions/setup-go@v5
3838
with:
3939
go-version: '1.22.x'
4040

internal/runbits/runtime/rationalize.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ func RationalizeSolveError(proj *project.Project, auth *auth.Auth, rerr *error)
109109
*rerr = errs.NewUserFacing(locale.Tr(
110110
"err_alternate_branches",
111111
noMatchingPlatformErr.HostPlatform, noMatchingPlatformErr.HostArch,
112-
proj.BranchName(), strings.Join(branches, "\n - ")))
112+
proj.BranchName(), strings.Join(branches, "\n - ")),
113+
errs.SetInput())
113114
return
114115
}
115116
}

internal/subshell/subshell_win_test.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,24 @@ func setup(t *testing.T) {
2727
func TestBash(t *testing.T) {
2828
setup(t)
2929

30-
os.Setenv("SHELL", `C:\Program Files\bash.exe`)
30+
shellPath := `C:\Program Files\Git\usr\bin\bash.exe`
31+
os.Setenv("SHELL", shellPath)
3132
cfg, err := config.New()
3233
require.NoError(t, err)
3334
subs := New(cfg)
34-
assert.Equal(t, `C:\Program Files\bash.exe`, subs.Binary())
35+
assert.Equal(t, shellPath, subs.Binary())
3536

3637
}
3738

3839
func TestBashDontEscapeSpace(t *testing.T) {
3940
setup(t)
4041

4142
// Reproduce bug in which paths are being incorrectly escaped on windows
42-
os.Setenv("SHELL", `C:\Program\ Files\bash.exe`)
43+
os.Setenv("SHELL", `C:\Program\ Files\Git\usr\bin\bash.exe`)
4344
cfg, err := config.New()
4445
require.NoError(t, err)
4546
subs := New(cfg)
46-
assert.Equal(t, `C:\Program Files\bash.exe`, subs.Binary())
47+
assert.Equal(t, `C:\Program Files\Git\usr\bin\bash.exe`, subs.Binary())
4748
}
4849

4950
func TestRunCommandError(t *testing.T) {

0 commit comments

Comments
 (0)