Skip to content

typecheck: : error obtaining VCS status: exit status 128 #4033

Closed
@chmouel

Description

@chmouel

Welcome

Description of the problem

getting this error this morning in our CI, thing works properly when building with -buildvcs=false, i am not sure how to pass that flag to golangci-lint

+ make lint-go
Linting go files...
cmd/pipelines-as-code-controller/main.go:1: : error obtaining VCS status: exit status 128
	Use -buildvcs=false to disable VCS stamping. (typecheck)
package main
cmd/pipelines-as-code-watcher/main.go:1: : error obtaining VCS status: exit status 128
	Use -buildvcs=false to disable VCS stamping. (typecheck)
package main
cmd/pipelines-as-code-webhook/main.go:1: : error obtaining VCS status: exit status 128
	Use -buildvcs=false to disable VCS stamping. (typecheck)
package main
cmd/tkn-pac/main.go:1: : error obtaining VCS status: exit status 128
	Use -buildvcs=false to disable VCS stamping. (typecheck)
package main
make: *** [Makefile:75: lint-go] Error 1

Version of golangci-lint

% docker run -it mirror.gcr.io/golangci/golangci-lint:latest golangci-lint --version
golangci-lint has version v1.54.1 built with go1.21.0 from a9378d9b on 2023-08-11T13:17:35Z

Configuration

https://github.com/openshift-pipelines/pipelines-as-code/blob/4f08ba0b810052a693d837472bc02a552fa4620a/.golangci.yml

Go environment

docker image

Verbose output of running

cmd/pipelines-as-code-controller/main.go:1: : error obtaining VCS status: exit status 128
	Use -buildvcs=false to disable VCS stamping. (typecheck)
package main

A minimal reproducible example or link to a public repository

https://github.com/openshift-pipelines/pipelines-as-code

Validation

  • Yes, I've included all information above (version, config, etc.).

Metadata

Metadata

Assignees

No one assigned

    Labels

    dockerPR that update Docker codequestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions