@@ -21,9 +21,9 @@ import (
21
21
)
22
22
23
23
var buildCmd = & cobra.Command {
24
- Use : "build " ,
25
- Short : "Builds the workspace image (useful to debug a workspace custom image)" ,
26
- Hidden : true ,
24
+ Use : "rebuild " ,
25
+ Short : "Re-builds the workspace image (useful to debug a workspace custom image)" ,
26
+ Hidden : false ,
27
27
Run : func (cmd * cobra.Command , args []string ) {
28
28
ctx , cancel := context .WithTimeout (context .Background (), 5 * time .Second )
29
29
defer cancel ()
@@ -35,7 +35,7 @@ var buildCmd = &cobra.Command{
35
35
}
36
36
defer client .Close ()
37
37
38
- tmpDir , err := os .MkdirTemp ("" , "gp-build -*" )
38
+ tmpDir , err := os .MkdirTemp ("" , "gp-rebuild -*" )
39
39
if err != nil {
40
40
log .Fatal ("Could not create temporary directory" )
41
41
return
@@ -51,7 +51,10 @@ var buildCmd = &cobra.Command{
51
51
ctx = context .Background ()
52
52
gitpodConfig , err := util .ParseGitpodConfig (wsInfo .CheckoutLocation )
53
53
if err != nil {
54
- log .Fatal ("Could not parse gitpod config" )
54
+ fmt .Println ("The .gitpod.yml file cannot be parsed: please check the file and try again" )
55
+ fmt .Println ("" )
56
+ fmt .Println ("For help check out the reference page:" )
57
+ fmt .Println ("https://www.gitpod.io/docs/references/gitpod-yml#gitpodyml" )
55
58
return
56
59
}
57
60
@@ -99,10 +102,10 @@ var buildCmd = &cobra.Command{
99
102
}
100
103
101
104
if baseimage == "" {
102
- fmt .Println ("Your project is not using any custom Docker image." ) // todo: cleanup
103
- fmt .Println ("Check out the following docs, to know how to get started" ) // todo: cleanup
104
- fmt .Println ("" ) // todo: cleanup
105
- fmt .Println ("https://www.gitpod.io/docs/configure/workspaces/workspace-image#use-a-public-docker-image" ) // todo: cleanup
105
+ fmt .Println ("Your project is not using any custom Docker image." )
106
+ fmt .Println ("Check out the following docs, to know how to get started" )
107
+ fmt .Println ("" )
108
+ fmt .Println ("https://www.gitpod.io/docs/configure/workspaces/workspace-image#use-a-public-docker-image" )
106
109
return
107
110
}
108
111
0 commit comments