66 "os/exec"
77 "strings"
88
9- "github.com/function61/gokit/envvar"
10- "github.com/function61/gokit/fileexists"
11- "github.com/function61/gokit/osutil"
9+ "github.com/function61/gokit/os/osutil"
1210 "github.com/function61/turbobob/pkg/versioncontrol"
1311 "github.com/spf13/cobra"
1412)
@@ -145,7 +143,7 @@ func buildAndPushOneDockerImage(dockerImage DockerImageSpec, buildCtx *BuildCont
145143
146144func cloneToWorkdir (buildCtx * BuildContext ) error {
147145 rootForProject := projectSpecificDir (buildCtx .Bobfile .ProjectName , "" )
148- rootForProjectExists , rootForProjectExistsErr := fileexists .Exists (rootForProject )
146+ rootForProjectExists , rootForProjectExistsErr := osutil .Exists (rootForProject )
149147 if rootForProjectExistsErr != nil {
150148 return rootForProjectExistsErr
151149 }
@@ -158,7 +156,7 @@ func cloneToWorkdir(buildCtx *BuildContext) error {
158156 }
159157 }
160158
161- workspaceDirExists , workspaceDirExistsErr := fileexists .Exists (buildCtx .WorkspaceDir )
159+ workspaceDirExists , workspaceDirExistsErr := osutil .Exists (buildCtx .WorkspaceDir )
162160 if workspaceDirExistsErr != nil {
163161 return workspaceDirExistsErr
164162 }
@@ -414,7 +412,7 @@ func buildInside(fastBuild bool) error {
414412
415413 // pass almost all of our environment variables
416414 for _ , envSerialized := range os .Environ () {
417- if key , _ := envvar .Parse (envSerialized ); key == "FASTBUILD" {
415+ if key , _ := osutil .Parse (envSerialized ); key == "FASTBUILD" {
418416 // since we have explicit interface from here on, ignore setting any previous
419417 // value so we can control whether we set this or not
420418 continue
0 commit comments