Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

dep ensure pulls malformed subpackage #984

Closed
@VojtechVitek

Description

@VojtechVitek

What version of Go (go version) and dep (git describe --tags) are you using?

go version go1.9rc1 darwin/amd64
dep v0.3.0-34-gc80fab8

What dep command did you run?

$ git clone https://github.com/VojtechVitek/dep-test.git

$ cd dep-test

$ cat Gopkg.toml
[[constraint]]
  name = "github.com/go-chi/docgen/raml"
  version = "^1.0.2"

$ dep ensure -v
Root project is "github.com/VojtechVitek/dep-test"
 1 transitively valid internal packages
 1 external packages imported from 1 projects
(0)   ✓ select (root)
(1)	? attempt github.com/go-chi/docgen/raml with 1 pkgs; 4 versions to try
(1)	    try github.com/go-chi/docgen/[email protected]
(1)	✓ select github.com/go-chi/docgen/[email protected] w/1 pkgs
(2)	? attempt github.com/go-chi/chi with 1 pkgs; 16 versions to try
(2)	    try github.com/go-chi/[email protected]
(2)	✓ select github.com/go-chi/[email protected] w/1 pkgs
  ✓ found solution with 2 packages from 2 projects

Solver wall times by segment:
     b-source-exists: 1.731622899s
         b-list-pkgs: 477.610861ms
              b-gmal: 448.395904ms
             satisfy:    366.948µs
         select-atom:    328.329µs
            new-atom:    137.822µs
         select-root:     63.428µs
     b-list-versions:     56.773µs
  b-deduce-proj-root:     28.949µs
               other:     13.635µs

  TOTAL: 2.658625548s

What did you expect to see?

  • dep should have installed github.com/go-chi/docgen/raml subpkg
  • dep should have installed github.com/go-chi/docgen transitive dependency pkg

What did you see instead?

vendor/
└── github.com
    └── go-chi
        └── docgen
            └── raml               <=== This directory is wrong. All the files should have been in the parent directory instead.
                ├── LICENSE
                ├── builder.go
                ├── docgen.go
                ├── docgen_test.go
                ├── funcinfo.go
                ├── markdown.go
                ├── raml           <=== Um, what? Yet another raml subdirectory?
                │   ├── raml.go
                │   └── raml_test.go
                └── util.go
$ dep status
PROJECT                        CONSTRAINT  VERSION  REVISION  LATEST   PKGS USED
github.com/go-chi/chi          *           v3.1.5   25354a5   25354a5  1
github.com/go-chi/docgen/raml  ^1.0.2      v1.0.2   ac43d9a   ac43d9a  1

Reproducer repo: https://github.com/VojtechVitek/dep-test

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions