Skip to content

Commit b13c5f7

Browse files
committed
Fix CodeQL workflow: add empty backup extension for sed on macOS
The sed -i command on macOS requires a backup extension argument (even if empty), while Linux does not. This was causing the 'Update Package.swift to use remote MistKit branch' step to fail. Changed: sed -i '' instead of sed -i Fixes: https://github.com/brightdigit/BushelCloud/actions/runs/20824344854
1 parent 1183e38 commit b13c5f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
# Update Package.swift to use remote MistKit branch
7474
- name: Update Package.swift to use remote MistKit branch
7575
run: |
76-
sed -i 's|\.package(name: "MistKit", path: "\.\./\.\.")|.package(url: "https://github.com/brightdigit/MistKit.git", branch: "main")|g' Package.swift
76+
sed -i '' 's|\.package(name: "MistKit", path: "\.\./\.\.")|.package(url: "https://github.com/brightdigit/MistKit.git", branch: "main")|g' Package.swift
7777
rm -f Package.resolved
7878
7979
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).

0 commit comments

Comments
 (0)