-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parse issue go.dev/govulncheck #882
Comments
Can you post the contents of Assuming there's a difference, |
Here are the contents: Contentsdistributable:
url: https://github.com/golang/vuln/archive/refs/tags/v{{version}}.tar.gz
strip-components: 1
versions:
github: golang/vuln/tags
provides:
- bin/govulncheck
build:
dependencies:
go.dev: ^1.19
script: |
go mod download
mkdir -p "{{ prefix }}"/bin
go build -v -trimpath -ldflags="$LDFLAGS" -o $BUILDLOC ./cmd/govulncheck
env:
GOPROXY: https://proxy.golang.org,direct
GOSUMDB: sum.golang.org
GO111MODULE: on
CGO_ENABLED: 0
BUILDLOC: '{{prefix}}/bin/govulncheck'
LDFLAGS:
- -s
- -w
linux:
# or segmentation fault
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
LDFLAGS:
- -buildmode=pie
test:
fixture: |
package main
import (
"fmt"
"os"
"golang.org/x/text/language"
)
func main() {
for _, arg := range os.Args[1:] {
tag, err := language.Parse(arg)
if err != nil {
fmt.Printf("%s: error: %v\n", arg, err)
} else if tag == language.Und {
fmt.Printf("%s: undefined\n", arg)
} else {
fmt.Printf("%s: tag %s\n", arg, tag)
}
}
}
dependencies:
go.dev: ^1.19
script:
- go mod init vuln.tutorial
- cp $FIXTURE main.go
- go mod tidy
- go get golang.org/x/[email protected]
- (govulncheck ./... 2>&1 || �������������������������� It turns out that |
@mxcl here's an example of a corrupted gnup.org/pinentry is a directory in the current pantry. so there's definite corruption of your pantry, @dcvz . for a quick fix, you can probably |
* Will fix some errors due to invalid pantry parsing * Removes platform specific moustaches devenvs * these weren't documented so even though this is strictly a breaking change I would be willing to risk the tea protocol slash consequences for it in a tea protocol future * there is potential utility in platform/arch being there so we should propose a proper addition * Fix CD Refs #882 Refs #865
* Will fix some errors due to invalid pantry parsing * Removes platform specific moustaches devenvs * these weren't documented so even though this is strictly a breaking change I would be willing to risk the tea protocol slash consequences for it in a tea protocol future * there is potential utility in platform/arch being there so we should propose a proper addition * Fix CD Refs #882 Refs #865
Closing in favor of #865 This issue is much reduced in impact since 1.1.1, but still happens and needs to be understood and fixed. |
Suddenly started getting this today:
The text was updated successfully, but these errors were encountered: