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

doxxx opened this issue Apr 26, 2018 · 2 comments

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

doxxx opened this issue Apr 26, 2018 · 2 comments


Copy link

@doxxx 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 GOROOT=C:\Go
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=clang
set CXX=clang++
set CGO_CFLAGS=-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

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:

  name = ""
  version = "0.8.0"

  name = ""
  version = "1.1.0"

  name = ""
  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'.

  name = ""
  packages = ["."]
  revision = "9898238679c264cfb10411539f14a0553dc8b295"
  version = "v1.0.0"

  name = ""
  packages = ["."]
  revision = "645ef00459ed84a119197bfb8d8205042c6df63d"
  version = "v0.8.0"

  name = ""
  packages = ["."]
  revision = "879c5887cd475cd7864858769793b2ceb0d44feb"
  version = "v1.1.0"

  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

This comment has been minimized.

Copy link

@gopherbot gopherbot commented Apr 28, 2018

Change mentions this issue: cmd/go/internal/modfetch: fix legacy config file path parsed failed


This comment has been minimized.

Copy link

@doxxx 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.
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.