Small nits and bugs
diff --git a/action/get.go b/action/get.go
index d163a6f..cf08abc 100644
--- a/action/get.go
+++ b/action/get.go
@@ -201,7 +201,8 @@
}
dep := &cfg.Dependency{
- Name: root,
+ Name: root,
+ Constraint: vsolver.Any(),
}
// When retriving from an insecure location set the repo to the
diff --git a/cfg/config.go b/cfg/config.go
index 458fbc8..76b23b4 100644
--- a/cfg/config.go
+++ b/cfg/config.go
@@ -562,7 +562,10 @@
// constraint information at all
// TODO for now, probably until we add first-class 'default branch'
} else {
- return nil, fmt.Errorf("Unrecognized constraint, cannot serialize config yaml; %s", newDep.Name)
+ // assume we have a semver range
+ // TODO really? vsolver doesn't expose a way of getting at this?
+ newDep.Reference = d.Constraint.String()
+ //return nil, fmt.Errorf("Unrecognized constraint, cannot serialize config yaml; %s", newDep.Name)
}
return newDep, nil
diff --git a/glide.go b/glide.go
index 1a687b0..b7b2260 100644
--- a/glide.go
+++ b/glide.go
@@ -235,6 +235,7 @@
//}
inst := repo.NewInstaller()
+ inst.Home = gpath.Home()
//inst.UseCacheGopath = c.Bool("cache-gopath")
//inst.ResolveAllFiles = c.Bool("all-dependencies")
packages := []string(c.Args())