hook for https://pre-commit.com/
felixseptem / pre-commit-golang Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
hook for https://pre-commit.com/
My CI config recently started failing on 12f5442 with:
Run go get github.com/bazelbuild/buildtools/buildifier
go get github.com/bazelbuild/buildtools/buildifier
buildifier --version
shell: /usr/bin/bash -e {0}
env:
GOROOT: /opt/hostedtoolcache/go/1.18.0/x6[4](https://github.com/facebookresearch/CompilerGym/runs/5800783725?check_suite_focus=true#step:5:4)
go: go.mod file not found in current directory or any parent directory.
'go get' is no longer supported outside a module.
To build and install a command, use 'go install' with a version,
like 'go install example.com/cmd@latest'
For more information, see https://golang.org/doc/go-get-install-deprecation
or run 'go help get' or 'go help install'.
Error: Process completed with exit code 1.
Usage:
- repo: https://github.com/FelixSeptem/pre-commit-golang
rev: 12f5442f51377b10b26651ad745206bbe1500ad6
hooks:
- id: bazel-buildifier
I use the files
attribute in my .pre-commit-config.yml
file to whitelist the files that pre-commit will be run on for my project. I wanted to use your buildifier hook, but it seems like it ignores my files
setting. Could this be fixed?
My account was compromised, as a result many spam issues got created across multiple repos. I am deleting all such issues. Please check my tweet: https://x.com/arghyac35/status/1729721954909684064?s=20
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.