Skip to content

Commit 5355ae9

Browse files
authored
Fix ast-grep installation - switch from broken zip download to npm (#1300)
1 parent 742dca5 commit 5355ae9

3 files changed

Lines changed: 6 additions & 12 deletions

File tree

.github/workflows/duplicate-code-detector.lock.yml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/go-pattern-detector.lock.yml

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/shared/ast-grep.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ tools:
44
steps:
55
- name: Install ast-grep
66
run: |
7-
curl -L https://github.com/ast-grep/ast-grep/releases/latest/download/ast-grep-x86_64-unknown-linux-gnu.zip -o /tmp/ast-grep.zip
8-
unzip -q /tmp/ast-grep.zip -d /tmp/ast-grep
9-
sudo mv /tmp/ast-grep/ast-grep /usr/local/bin/
10-
chmod +x /usr/local/bin/ast-grep
7+
npm install --global @ast-grep/cli
118
ast-grep --version
129
---
1310

0 commit comments

Comments
 (0)