Giter Club home page Giter Club logo

pre-commit-golang's Introduction

pre-commit-golang's People

Contributors

felixseptem avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

pre-commit-golang's Issues

"Install buildifer" step fails

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

Appears to ignore `files` in `.pre-commit-config.yml`

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.