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: unknown legacy config file ...\Gopkg.lock #25110

Closed
doxxx opened this issue Apr 26, 2018 · 2 comments
Closed

x/vgo: unknown legacy config file ...\Gopkg.lock #25110

doxxx opened this issue Apr 26, 2018 · 2 comments
Milestone

Comments

@doxxx
Copy link

doxxx commented Apr 26, 2018

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

go 1.10
vgo b1062e5e

Does this issue reproduce with the latest release?

Just updated to vgo b1062e5e and retested, problem still occurs.

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

set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\gordon.tyler\AppData\Local\go-build
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\gordon.tyler\go
set GORACE=
set GOROOT=C:\Go
set GOTMPDIR=
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=clang
set CXX=clang++
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 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\GORDON~1.TYL\AppData\Local\Temp\go-build456460846=/tmp/go-build -gno-record-gcc-switches
set VGOMODROOT=

What did you do?

I have a project (not public, sorry) with dependencies managed by dep. I tried to convert it to vgo using vgo build.

The Gopkg.toml looks like this:

[[constraint]]
  name = "github.com/pkg/errors"
  version = "0.8.0"

[[constraint]]
  name = "github.com/satori/go.uuid"
  version = "1.1.0"

[[constraint]]
  name = "github.com/go-test/deep"
  version = "1.0.0"

The Gopkg.lock looks like this:

# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.


[[projects]]
  name = "github.com/go-test/deep"
  packages = ["."]
  revision = "9898238679c264cfb10411539f14a0553dc8b295"
  version = "v1.0.0"

[[projects]]
  name = "github.com/pkg/errors"
  packages = ["."]
  revision = "645ef00459ed84a119197bfb8d8205042c6df63d"
  version = "v0.8.0"

[[projects]]
  name = "github.com/satori/go.uuid"
  packages = ["."]
  revision = "879c5887cd475cd7864858769793b2ceb0d44feb"
  version = "v1.1.0"

[solve-meta]
  analyzer-name = "dep"
  analyzer-version = 1
  inputs-digest = "a8c99240f47ae4392b67053fc7e69f386e8640fb60b0b9792c5a7127bc73b064"
  solver-name = "gps-cdcl"
  solver-version = 1

What did you expect to see?

A generated go.mod replicating the dependencies from Gopkg.toml.

What did you see instead?

An error from vgo:

vgo: unknown legacy config file C:\Users\gordon.tyler\go\src\myproject\Gopkg.lock
@gopherbot gopherbot added this to the vgo milestone Apr 26, 2018
@gopherbot
Copy link
Contributor

Change https://golang.org/cl/110117 mentions this issue: cmd/go/internal/modfetch: fix legacy config file path parsed failed

@doxxx
Copy link
Author

doxxx commented Jun 6, 2018

Verified, works for me.

@golang golang locked and limited conversation to collaborators Jun 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants