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

some kind of hint about how packages are actually used #2175

Closed
kevinburke opened this issue Jun 12, 2019 · 2 comments
Closed

some kind of hint about how packages are actually used #2175

kevinburke opened this issue Jun 12, 2019 · 2 comments

Comments

@kevinburke
Copy link
Collaborator

I have a Gopkg.toml and I'm trying to reproduce a reported error. I basically created a main.go that imports all of the dependencies, to reproduce the same logic dep would use to build the vendor directory.

package main

import (
    _ "golang.org/x/sync"
    _ "github.com/lib/pq"
    // ...
)

This is annoying because they all fail with *build.NoGoError so I need to go to each dependency in turn and find a subpackage that's actually imported. Not sure what a good solution would be, maybe I should have asked for the lock file instead.

@kevinburke
Copy link
Collaborator Author

Or like a tool that, given a set of Git root package names returns the first matching Go subpackage (if any)

@mvdan
Copy link
Member

mvdan commented Sep 4, 2020

Dep was officially deprecated earlier this year, and the proposal to archive this repository was accepted. As such, I'm closing outstanding issues before archiving the repository. For any further comments, please use the proposal thread on the Go issue tracker. Thanks!

@mvdan mvdan closed this as completed Sep 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants