Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force analysis of named paths in glide get #707

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion action/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func Get(names []string, installer *repo.Installer, insecure, skipRecursive, str
// to be between 1.0 and 2.0. But changing that dependency may then result
// in that dependency's dependencies changing... so we sorta do the whole
// thing to be safe.
err = installer.Update(confcopy)
err = installer.Update(confcopy, names...)
if err != nil {
msg.Die("Could not update packages: %s", err)
}
Expand Down
4 changes: 2 additions & 2 deletions repo/installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (i *Installer) Checkout(conf *cfg.Config) error {
// listed, but the version reconciliation has not been done.
//
// In other words, all versions in the Lockfile will be empty.
func (i *Installer) Update(conf *cfg.Config) error {
func (i *Installer) Update(conf *cfg.Config, req ...string) error {
base := "."

ic := newImportCache()
Expand Down Expand Up @@ -168,7 +168,7 @@ func (i *Installer) Update(conf *cfg.Config) error {
}
var deps cfg.Dependencies
var tdeps cfg.Dependencies
for _, v := range imps {
for _, v := range append(imps, req...) {
n := res.Stripv(v)
if conf.HasIgnore(n) {
continue
Expand Down