You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.
however dep init fails.
I should mention that dep init does support importing remote subpackages (as it should https://golang.org/cmd/go/#hdr-Remote_import_paths), but seems that it gets confused by glide.yaml here
What version of Go (go version) and dep (git describe --tags) are you using?
go version: go1.8.3 linux/amd64
dep version: v0.1.0-236-g98f1d99
What dep command did you run?
dep init
What did you expect to see?
success
What did you see instead?
Importing configuration from glide. These are only initial constraints, and are further refined during the solve process.
Detected glide configuration files...
Loading /home/michael/projects/gopath/src/dep-bug/glide.yaml
Loading /home/michael/projects/gopath/src/dep-bug/glide.lock
Converting from glide.yaml and glide.lock...
Using master as initial constraint for imported dep github.com/c9s/goprocinfo/linux
Trying * (b34328d) as initial lock for imported dep github.com/c9s/goprocinfo
Root project is "dep-bug"
1 transitively valid internal packages
1 external packages imported from 1 projects
(0) ✓ select (root)
(1) ? attempt github.com/c9s/goprocinfo/linux with 1 pkgs; 1 versions to try
(1) try github.com/c9s/goprocinfo/linux@master
(2) ✗ github.com/c9s/goprocinfo/linux at master has problem subpkg(s):
(2) github.com/c9s/goprocinfo/linux has err (*build.NoGoError); required by (root).
(1) ← no more versions of github.com/c9s/goprocinfo/linux to try; begin backtrack
✗ solving failed
Solver wall times by segment:
b-source-exists: 977.660627ms
b-list-pkgs: 62.115878ms
select-root: 347.29µs
satisfy: 184.856µs
new-atom: 150.751µs
b-list-versions: 86.203µs
other: 4.744µs
TOTAL: 1.040550349s
No versions of github.com/c9s/goprocinfo/linux met constraints:
master: Could not introduce github.com/c9s/goprocinfo/linux@master, as its subpackage github.com/c9s/goprocinfo/linux does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)
It seems like dep tries to fetch github.com/c9s/goprocinfo/linux url directly instead of fetching the actual repository url github.com/c9s/goprocinfo
The text was updated successfully, but these errors were encountered:
michael-go
changed the title
init failes to import glide with an importpath to a remote subpackage
"dep init" failes to import glide with an importpath to a remote subpackage
Jul 20, 2017
@carolynvs It seem this bug is fixed (probably thanks to #1100)
Just tested on the example above and on an older revision of https://github.com/bcicen/ctop that failed for me when I opened this issue (8 days ago they moved to dep anyhow 😄 )
given
main.go
:and
glide.yaml
:glide install
works and createsglide.lock
:however
dep init
fails.I should mention that
dep init
does support importing remote subpackages (as it should https://golang.org/cmd/go/#hdr-Remote_import_paths), but seems that it gets confused byglide.yaml
hereI stumbled upon this issue when playing with
dep
and trying to rundep init
on a popular go repo https://github.com/bcicen/ctopWhat version of Go (
go version
) anddep
(git describe --tags
) are you using?go version:
go1.8.3 linux/amd64
dep version:
v0.1.0-236-g98f1d99
What
dep
command did you run?dep init
What did you expect to see?
success
What did you see instead?
It seems like
dep
tries to fetchgithub.com/c9s/goprocinfo/linux
url directly instead of fetching the actual repository urlgithub.com/c9s/goprocinfo
The text was updated successfully, but these errors were encountered: