Skip to content
This repository has been archived by the owner on Nov 25, 2019. It is now read-only.
/ go-extimport Public archive

Go check that checks that a project does not import any external packages

License

Notifications You must be signed in to change notification settings

palantir/go-extimport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATED

go-extimport was originally developed to ensure the consistency of the vendor directory for projects. This was necessary when the vendor directory was managed manually or using basic tools such as govendor. However, tools such as dep and the support for modules in Go have made the functionality provided by this tool unnecessary. As such, active development on this project has ended.

go-extimport

go-extimport is a program that verifies that there are no imports that reference external packages in a Go project.

A package is considered external if it is not in the standard Go library and not resolvable within the project directory itself (the package is not in the project or vendored in the project). An import is considered to be directly external if it imports an external package. An import is considered transitively external if the imported package itself is not external, but one of its dependent packages is external.

Given a package, go-extimport checks the imports of all of the Go files and Go test files in that package. However, when checking transitive external package dependencies, only non-test go files are considered (that is, the check will not fail if a test file of an imported package has an external dependency).

About

Go check that checks that a project does not import any external packages

Resources

License

Stars

Watchers

Forks

Packages

No packages published