Skip to content
This repository has been archived by the owner on Feb 26, 2019. It is now read-only.

Support depending on "packages" that contain no Go files #165

Open
smarterclayton opened this issue Dec 28, 2014 · 2 comments
Open

Support depending on "packages" that contain no Go files #165

smarterclayton opened this issue Dec 28, 2014 · 2 comments
Assignees

Comments

@smarterclayton
Copy link

Some Golang projects include directories in their source repository that contain binary content that is necessary for consumers of package code (under version control) but exists in directories that do not contain Go source. It should be possible to declare a Godep dependency on those directories and have them included in order to ensure those dependent directories are included.

Obviously this is a slippery slope, but things like asset folders for vendored JS/HTML/CSS code occur frequently. A workaround is to add a doc.go to make those directories packages, but that isn't always possible with upstream projects.

@freeformz
Copy link

What is the use case here? Why would I want to vendor a "package" that I don't use in code?

@freeformz freeformz self-assigned this Oct 8, 2015
@smarterclayton
Copy link
Author

Because it contains shell scripts or example JSON files that would be used by a test case (so you could run test cases on vendored code), or things like assets (JS, CSS, images) that might be directly referenced by the code.

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