yor
yor copied to clipboard
Pre-commit hook not working
Describe the bug Pre-commit is not able to install the environment correctly.
To Reproduce Steps to reproduce the behavior:
- define yor pre-commit config in the .pre-commit-config.yaml
- git add and git commit
Expected behavior Yor gets triggered by the pre commit hook and adds the tags accordingly.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: iOS
- Yor Version: 0.1.189
Additional context
pre-commit config:
- repo: https://github.com/bridgecrewio/yor
rev: 0.1.189
hooks:
- id: yor
name: yor
entry: yor tag -d
language: golang
types: [terraform]
Error log:
The following files have been added, modified, moved, or removed:
********************************************************************
M .pre-commit-config.yaml
M test.tf
********************************************************************
[INFO] Initializing environment for https://github.com/bridgecrewio/yor.
[INFO] Installing environment for https://github.com/bridgecrewio/yor.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('/usr/local/bin/go', 'install', './...')
return code: 1
stdout: (none)
stderr:
go: downloading gopkg.in/validator.v2 v2.0.0-20200605151824-2b28d334fa05
go: downloading github.com/go-git/go-git/v5 v5.2.0
go: downloading github.com/olekukonko/tablewriter v0.0.5
go: downloading github.com/bridgecrewio/goformation/v5 v5.0.0-20210823081757-99ed9bf3c0e5
go: downloading github.com/bridgecrewio/goformation/v5 v5.0.0-20210823083242-84a6d242099f
go: downloading github.com/sanathkr/yaml v1.0.0
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading github.com/google/uuid v1.2.0
go: downloading github.com/urfave/cli/v2 v2.3.0
go: downloading github.com/stretchr/testify v1.6.1
go: downloading github.com/pmezard/go-difflib v1.0.0
go: downloading github.com/hashicorp/go-hclog v0.9.2
go: downloading github.com/hashicorp/go-version v1.2.0
go: downloading github.com/hashicorp/hcl/v2 v2.8.2
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading github.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f
go: downloading github.com/hashicorp/terraform v0.12.31
go: downloading github.com/minamijoyo/tfschema v0.6.0
go: downloading github.com/mitchellh/cli v1.1.0
go: downloading github.com/zclconf/go-cty v1.7.0
go: downloading go.opencensus.io v0.22.0
go: downloading github.com/mattn/go-runewidth v0.0.9
go: downloading github.com/go-git/go-billy/v5 v5.0.0
go: downloading github.com/imdario/mergo v0.3.13
go: downloading github.com/sergi/go-diff v1.1.0
go: downloading golang.org/x/crypto v0.17.0
go: downloading github.com/emirpasic/gods v1.12.0
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading gopkg.in/yaml.v3 v3.0.0
go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d
go: downloading github.com/sanathkr/go-yaml v0.0.0-20170819195128-ed9d249f429b
go: downloading github.com/agext/levenshtein v1.2.2
go: downloading github.com/apparentlymart/go-textseg/v12 v12.0.0
go: downloading github.com/mitchellh/go-wordwrap v1.0.0
go: downloading github.com/google/go-cmp v0.5.5
go: downloading github.com/apparentlymart/go-textseg v1.0.0
go: downloading github.com/hashicorp/go-plugin v1.3.0
go: downloading github.com/hashicorp/hcl2 v0.0.0-20190515223218-4b22149b7cef
go: downloading github.com/mitchellh/go-homedir v1.1.0
go: downloading github.com/armon/go-radix v1.0.0
go: downloading github.com/bgentry/speakeasy v0.1.0
go: downloading github.com/fatih/color v1.7.0
go: downloading github.com/mattn/go-isatty v0.0.5
go: downloading github.com/posener/complete v1.2.1
go: downloading golang.org/x/text v0.14.0
go: downloading golang.org/x/sys v0.15.0
go: downloading github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99
go: downloading github.com/russross/blackfriday/v2 v2.0.1
go: downloading github.com/golang/protobuf v1.5.2
go: downloading github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb
go: downloading github.com/mitchellh/go-testing-interface v1.0.0
go: downloading github.com/oklog/run v1.0.0
go: downloading golang.org/x/net v0.10.0
go: downloading google.golang.org/grpc v1.27.1
go: downloading github.com/hashicorp/terraform-svchost v0.0.0-20191011084731-65d371908596
go: downloading github.com/hashicorp/errwrap v1.0.0
go: downloading github.com/hashicorp/go-getter v1.6.2
go: downloading github.com/hashicorp/go-multierror v1.0.0
go: downloading github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e
go: downloading github.com/hashicorp/go-tfe v0.8.1
go: downloading github.com/hashicorp/go-uuid v1.0.1
go: downloading github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0
go: downloading github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db
go: downloading github.com/xlab/treeprint v0.0.0-20161029104018-1d6e34225557
go: downloading golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
go: downloading github.com/mitchellh/copystructure v1.0.0
go: downloading github.com/mitchellh/reflectwalk v1.0.0
go: downloading github.com/go-git/gcfg v1.5.0
go: downloading github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd
go: downloading github.com/xanzy/ssh-agent v0.2.1
go: downloading github.com/mattn/go-colorable v0.1.1
go: downloading github.com/shurcooL/sanitized_anchor_name v1.0.0
go: downloading google.golang.org/protobuf v1.26.0
go: downloading google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55
go: downloading github.com/hashicorp/go-cleanhttp v0.5.2
go: downloading github.com/hashicorp/go-retryablehttp v0.5.2
go: downloading github.com/mitchellh/go-linereader v0.0.0-20190213213312-1b945b3263eb
go: downloading github.com/armon/circbuf v0.0.0-20190214190532-5111143e8da2
go: downloading github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4
go: downloading github.com/spf13/afero v1.2.1
go: downloading github.com/hashicorp/hil v0.0.0-20190212112733-ab17b08d6590
go: downloading github.com/mitchellh/panicwrap v1.0.0
go: downloading github.com/blang/semver v3.5.1+incompatible
go: downloading github.com/mitchellh/hashstructure v1.0.0
go: downloading github.com/mitchellh/mapstructure v1.1.2
go: downloading github.com/zclconf/go-cty-yaml v1.0.1
go: downloading cloud.google.com/go v0.45.1
go: downloading github.com/aws/aws-sdk-go v1.33.0
go: downloading github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d
go: downloading github.com/hashicorp/go-safetemp v1.0.0
go: downloading github.com/klauspost/compress v1.11.2
go: downloading github.com/ulikunitz/xz v0.5.8
go: downloading google.golang.org/api v0.9.0
go: downloading github.com/vmihailenco/msgpack/v4 v4.3.12
go: downloading github.com/google/go-querystring v1.0.0
go: downloading github.com/hashicorp/go-slug v0.5.0
go: downloading github.com/svanharmelen/jsonapi v0.0.0-20180618144545-0c0828c3f16d
go: downloading golang.org/x/time v0.0.0-20190308202827-9d24e82272b4
go: downloading gopkg.in/warnings.v0 v0.1.2
go: downloading github.com/hashicorp/go-rootcerts v1.0.0
go: downloading github.com/lusis/go-artifactory v0.0.0-20160115162124-7e4ce345df82
go: downloading github.com/Azure/azure-sdk-for-go v36.2.0+incompatible
go: downloading github.com/Azure/go-autorest/autorest v0.9.2
go: downloading github.com/hashicorp/go-azure-helpers v0.10.0
go: downloading github.com/hashicorp/consul v0.0.0-20171026175957-610f3c86a089
go: downloading github.com/tencentcloud/tencentcloud-sdk-go v3.0.82+incompatible
go: downloading github.com/likexian/gokit v0.20.15
go: downloading github.com/tencentyun/cos-go-sdk-v5 v0.0.0-20190808065407-f07404cefc8c
go: downloading github.com/coreos/etcd v3.3.10+incompatible
go: downloading github.com/joyent/triton-go v0.0.0-20180313100802-d8f9c0314926
go: downloading github.com/aliyun/alibaba-cloud-sdk-go v0.0.0-20190329064014-6e358769c32a
go: downloading github.com/aliyun/aliyun-oss-go-sdk v0.0.0-20190103054945-8205d1f41e70
go: downloading github.com/aliyun/aliyun-tablestore-go-sdk v4.1.2+incompatible
go: downloading github.com/jmespath/go-jmespath v0.3.0
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/lib/pq v1.0.0
go: downloading github.com/hashicorp/aws-sdk-go-base v0.4.0
go: downloading github.com/gophercloud/gophercloud v0.0.0-20190208042652-bc37892e1968
go: downloading github.com/terraform-providers/terraform-provider-openstack v1.15.0
go: downloading github.com/apparentlymart/go-cidr v1.0.1
go: downloading github.com/bmatcuk/doublestar v1.1.5
go: downloading github.com/googleapis/gax-go/v2 v2.0.5
go: downloading github.com/Azure/go-autorest/autorest/adal v0.8.1-0.20191028180845-3492b2aff503
go: downloading github.com/vmihailenco/tagparser v0.1.1
go: downloading github.com/Azure/go-autorest/tracing v0.5.0
go: downloading github.com/Azure/go-autorest/logger v0.1.0
go: downloading github.com/Azure/go-autorest/autorest/azure/cli v0.2.0
go: downloading github.com/mozillazg/go-httpheader v0.2.1
go: downloading github.com/ugorji/go v0.0.0-20180813092308-00b869d2f4a5
go: downloading github.com/json-iterator/go v1.1.5
go: downloading github.com/masterzen/winrm v0.0.0-20190223112901-5e5c9a7fe54b
go: downloading github.com/packer-community/winrmcp v0.0.0-20180102160824-81144009af58
go: downloading github.com/Unknwon/com v0.0.0-20151008135407-28b053d5a292
go: downloading github.com/gophercloud/utils v0.0.0-20190128072930-fbb6ab446f01
go: downloading github.com/hashicorp/serf v0.0.0-20160124182025-e4ec8cc423bb
go: downloading github.com/satori/go.uuid v1.2.0
go: downloading github.com/Azure/go-autorest/autorest/date v0.2.0
go: downloading github.com/dgrijalva/jwt-go v3.2.0+incompatible
go: downloading github.com/Azure/go-autorest/autorest/to v0.3.0
go: downloading github.com/Azure/go-autorest/autorest/validation v0.2.0
go: downloading github.com/dimchansky/utfbom v1.1.0
go: downloading github.com/coreos/go-semver v0.2.0
go: downloading github.com/gogo/protobuf v1.3.2
go: downloading gopkg.in/ini.v1 v1.42.0
go: downloading github.com/Azure/go-ntlmssp v0.0.0-20180810175552-4a21cbd618b4
go: downloading github.com/ChrisTrenkamp/goxpath v0.0.0-20170922090931-c385f95c6022
go: downloading github.com/hashicorp/golang-lru v0.5.1
go: downloading github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d
go: downloading github.com/dylanmei/iso8601 v0.1.0
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: downloading github.com/modern-go/reflect2 v1.0.1
go: downloading github.com/masterzen/simplexml v0.0.0-20160608183007-4572e39b1ab9
golangenv-system/pkg/mod/github.com/hashicorp/[email protected]/backend/remote-state/cos/backend.go:13:2: reading github.com/tencentcloud/tencentcloud-sdk-go/go.mod at revision v3.0.82: unknown revision v3.0.82
golangenv-system/pkg/mod/github.com/hashicorp/[email protected]/backend/remote-state/cos/backend.go:14:2: reading github.com/tencentcloud/tencentcloud-sdk-go/go.mod at revision v3.0.82: unknown revision v3.0.82
golangenv-system/pkg/mod/github.com/hashicorp/[email protected]/backend/remote-state/cos/backend.go:15:2: reading github.com/tencentcloud/tencentcloud-sdk-go/go.mod at revision v3.0.82: unknown revision v3.0.82
Check the log at <REDACTED>/.cache/pre-commit/pre-commit.log
command error
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.