Skip to content
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

x/vgo: vgo verify fails on GOOS="windows" #24675

Closed
rivy opened this issue Apr 4, 2018 · 1 comment

Comments

@rivy
Copy link

commented Apr 4, 2018

What version of Go are you using (go version)?

go version go1.10 windows/amd64 vgo:2018-02-20.1

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\Roy\AppData\Local\go-build
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\Roy\go
set GORACE=
set GOROOT=C:\Users\Roy\AppData\Local\scoop\apps\go\1.10
set GOTMPDIR=
set GOTOOLDIR=C:\Users\Roy\AppData\Local\scoop\apps\go\1.10\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\Roy\AppData\Local\Temp\go-build851538174=/tmp/go-build -gno-record-gcc-switches

What did you do?

From the example at https://research.swtch.com/vgo-cmd:

package main // import "aka/vgo-hello"

import (
	"fmt"
	"rsc.io/quote"
)

func main() {
	fmt.Println(quote.Hello())
}

vgo build succeeds, but then vgo verify fails.

What did you expect to see?

C:> vgo verify
all modules verified

What did you see instead?

golang.org/x/text v0.0.0-20171214130843-f21a4dfb5e38: open C:\Users\Roy\go\src\v\golang.org\x\text@v0.0.0-20171214130843-f21a4dfb5e38\golang.org\x\text@v0.0.0-20171214130843-f21a4dfb5e38\.gitattributes: The system cannot find the path specified.
rsc.io/quote v1.5.2: open C:\Users\Roy\go\src\v\rsc.io\quote@v1.5.2\rsc.io\quote@v1.5.2\LICENSE: The system cannot find the path specified.
rsc.io/sampler v1.99.99: open C:\Users\Roy\go\src\v\rsc.io\sampler@v1.99.99\rsc.io\sampler@v1.99.99\LICENSE: The system cannot find the path specified.

It appears that a subsection of the path is duplicated resulting in incorrect path finding and subsequent command failure.

@gopherbot gopherbot added this to the vgo milestone Apr 4, 2018

@bradfitz bradfitz changed the title x/vgo `vgo verify` fails on GOOS="windows" x/vgo: vgo verify fails on GOOS="windows" Apr 4, 2018

@gopherbot

This comment has been minimized.

Copy link

commented Apr 11, 2018

Change https://golang.org/cl/106337 mentions this issue: x/vgo: fix vgo verify fails on Windows

@golang golang locked and limited conversation to collaborators Apr 18, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants
You can’t perform that action at this time.