Skip to content

Commit

Permalink
Add module support
Browse files Browse the repository at this point in the history
  • Loading branch information
uudashr committed Sep 23, 2018
1 parent f5479ab commit 80818a3
Show file tree
Hide file tree
Showing 3 changed files with 254 additions and 94 deletions.
6 changes: 3 additions & 3 deletions cmd/gopkgs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ func main() {
flagPerfTrace *string
)

devMode := os.Getenv("DEV_MODE")
if devMode == "1" || devMode == "true" {
envDevMode := os.Getenv("DEV_MODE")
if envDevMode == "1" || envDevMode == "true" || envDevMode == "on" {
flagPerfCPUProfile = flag.String("perf-cpuprofile", "", "Write the CPU profile to a file")
flagPerfTrace = flag.String("perf-trace", "", "Write an execution trace to a file")
}
Expand Down Expand Up @@ -106,7 +106,7 @@ func main() {
os.Exit(1)
}

pkgs, err := gopkgs.Packages(gopkgs.Options{
pkgs, err := gopkgs.List(gopkgs.Options{
WorkDir: *flagWorkDir,
NoVendor: *flagNoVendor,
})
Expand Down
Loading

0 comments on commit 80818a3

Please sign in to comment.