Skip to content

Commit

Permalink
feat: speedup composer install by setting COMPOSER_ROOT_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Apr 17, 2024
1 parent a08a7fb commit 3141000
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/project/ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ var projectCI = &cobra.Command{
}
}

// speed up composer install, when no version is set
if os.Getenv("COMPOSER_ROOT_VERSION") == "" {
if err := os.Setenv("COMPOSER_ROOT_VERSION", "1.0.0"); err != nil {
return err
}
}

shopCfg, err := shop.ReadConfig(projectConfigPath, true)
if err != nil {
return err
Expand Down

0 comments on commit 3141000

Please sign in to comment.