-
-
Notifications
You must be signed in to change notification settings - Fork 0
fix(ci): stop blocking Bun — it is tier 1, not an anti-pattern #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,10 +21,10 @@ jobs: | |
| contents: read | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| - name: Block npm/bun | ||
| - name: Block npm/pnpm/yarn lockfiles | ||
| run: | | ||
| if [ -f "package-lock.json" ] || [ -f "bun.lockb" ] || [ -f ".npmrc" ]; then | ||
| echo "❌ npm/bun artifacts detected. Use Deno instead." | ||
| if [ -f "package-lock.json" ] || [ -f "pnpm-lock.yaml" ] || [ -f "yarn.lock" ]; then | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: #!/bin/bash
set -euo pipefail
workflow='members/tooling/vscode-a2ml/.github/workflows/npm-bun-blocker.yml'
printf 'Top-level working directory: '
yq -r '.defaults.run."working-directory" // "unset"' "$workflow"
printf 'Job working directory: '
yq -r '.jobs.check.defaults.run."working-directory" // "unset"' "$workflow"
printf 'Step working directory: '
yq -r '
.jobs.check.steps[]
| select(.name == "Block npm/pnpm/yarn lockfiles")
| (."working-directory" // "unset")
' "$workflow"
find members/tooling/vscode-a2ml -type f \
\( -name package-lock.json -o -name pnpm-lock.yaml -o -name yarn.lock \) -printRepository: hyperpolymath/a2ml-ecosystem Length of output: 235 🏁 Script executed: #!/bin/bash
set -euo pipefail
workflow='members/tooling/vscode-a2ml/.github/workflows/npm-bun-blocker.yml'
printf '%s\n' '--- workflow ---'
cat -n "$workflow"
printf '%s\n' '--- lockfiles under the member directory ---'
find members/tooling/vscode-a2ml -type f \
\( -name package-lock.json -o -name pnpm-lock.yaml -o -name yarn.lock \) -printRepository: hyperpolymath/a2ml-ecosystem Length of output: 1315 Scope the lockfile check to the member directory. The workflow has no 🤖 Prompt for AI Agents |
||
| echo "❌ npm/pnpm/yarn artifacts detected. Use Bun (package.json + bun.lock) instead." | ||
| exit 1 | ||
| fi | ||
| echo "✅ No npm/bun violations" | ||
| echo "✅ No npm/pnpm/yarn violations" | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚪ LOW RISK
Nitpick: The step name and filename still imply that Bun is being blocked. Consider updating the step name to something like 'Package Manager Guardrail' to reflect the pivot to supporting Bun.