Skip to content

Commit

Permalink
revert 51887a3 in favor of mountPaths.appDir()
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Kutner <[email protected]>
  • Loading branch information
jkutner committed Apr 28, 2021
1 parent 51887a3 commit 9cc6613
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
6 changes: 3 additions & 3 deletions internal/build/lifecycle_execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func (l *LifecycleExecution) Create(ctx context.Context, publish bool, dockerHos

opts := []PhaseConfigProviderOperation{
WithFlags(l.withLogLevel(flags...)...),
WithArgs("-app", l.mountPaths.appDirName(), repoName),
WithArgs("-app", l.mountPaths.appDir(), repoName),
WithNetwork(networkMode),
cacheOpts,
WithContainerOperations(CopyDir(l.opts.AppPath, l.mountPaths.appDir(), l.opts.Builder.UID(), l.opts.Builder.GID(), l.os, l.opts.FileFilter)),
Expand Down Expand Up @@ -225,7 +225,7 @@ func (l *LifecycleExecution) Detect(ctx context.Context, networkMode string, vol
l,
WithLogPrefix("detector"),
WithArgs(
l.withLogLevel("-app", l.mountPaths.appDirName())...,
l.withLogLevel("-app", l.mountPaths.appDir())...,
),
WithNetwork(networkMode),
WithBinds(volumes...),
Expand Down Expand Up @@ -357,7 +357,7 @@ func (l *LifecycleExecution) Build(ctx context.Context, networkMode string, volu
"builder",
l,
WithLogPrefix("builder"),
WithArgs(l.withLogLevel("-app", l.mountPaths.appDirName())...),
WithArgs(l.withLogLevel("-app", l.mountPaths.appDir())...),
WithNetwork(networkMode),
WithBinds(volumes...),
)
Expand Down
7 changes: 2 additions & 5 deletions internal/build/mount_paths.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package build

import (
"path"
"strings"
)
import "strings"

type mountPaths struct {
volume string
Expand Down Expand Up @@ -42,7 +39,7 @@ func (m mountPaths) stackPath() string {
}

func (m mountPaths) appDirName() string {
return path.Join(m.separator, m.workspace)
return m.workspace
}

func (m mountPaths) appDir() string {
Expand Down

0 comments on commit 9cc6613

Please sign in to comment.