Include dep ensure step in pulumi new output. (#3949)

This commit is contained in:
Luke Hoban 2020-02-21 06:41:33 -08:00 committed by GitHub
parent 42d1a606a4
commit 5bd954edf6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -666,6 +666,13 @@ func printNextSteps(proj *workspace.Project, originalCwd, cwd string, generateOn
// Install dependencies within the virtualenv
commands = append(commands, "pip3 install -r requirements.txt")
} else if strings.EqualFold(proj.Runtime.Name(), "go") {
// If we're generating a Go project, we (currently) will be placing a `Gopkg.toml`, and the
// user will need to `dep ensure` before running an update. So we will recommend this to
// them explicitly.
//
// TODO[pulumi/pulumi#3817] When we move to Go modules, we will want to update this.
commands = append(commands, "dep ensure")
}
// If we didn't create a stack, show that as a command to run before `pulumi up`.