sadpandajoe commented on code in PR #42500:
URL: https://github.com/apache/superset/pull/42500#discussion_r3723787552


##########
.github/workflows/pre-commit.yml:
##########
@@ -52,6 +52,16 @@ jobs:
       - name: Install helm-docs
         run: go install github.com/norwoodj/helm-docs/cmd/[email protected]
 
+      # Spike: run the existing .pre-commit-config.yaml through prek (a Rust
+      # reimplementation of pre-commit) instead of pre-commit itself, to see
+      # whether it's viable to speed up this job. CI-only — contributors keep
+      # installing/running `pre-commit` locally exactly as documented; nothing
+      # here changes that.
+      - name: Install prek
+        run: |
+          curl --proto '=https' --tlsv1.2 -LsSf 
https://github.com/j178/prek/releases/download/v0.4.11/prek-installer.sh | sh
+          echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"

Review Comment:
   This appends a directory where the installer never puts `prek`; the job 
currently works only because the installer separately writes `~/.local/bin` to 
`GITHUB_PATH`. Could we remove this line or set `PREK_INSTALL_DIR` to match it 
so the workflow doesn't encode a misleading fallback?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to