@@ -57,9 +57,9 @@ func mergeCmd(dockerCli command.Cli) *cobra.Command {
5757 return errors .Wrap (err , "error scanning application directory" )
5858 }
5959 if len (extra ) != 0 {
60- return fmt .Errorf ("refusing to overwrite %s: extra files would be deleted: %s" , extractedApp .OriginalPath , strings .Join (extra , "," ))
60+ return fmt .Errorf ("refusing to overwrite %s: extra files would be deleted: %s" , extractedApp .Path , strings .Join (extra , "," ))
6161 }
62- mergeOutputFile = extractedApp .OriginalPath + ".tmp"
62+ mergeOutputFile = extractedApp .Path + ".tmp"
6363 }
6464 var target io.Writer
6565 if mergeOutputFile == "-" {
@@ -70,18 +70,18 @@ func mergeCmd(dockerCli command.Cli) *cobra.Command {
7070 return err
7171 }
7272 }
73- if err := packager .Merge (extractedApp . Path , target ); err != nil {
73+ if err := packager .Merge (extractedApp , target ); err != nil {
7474 return err
7575 }
7676 if mergeOutputFile != "-" {
7777 // Need to close for the Rename to work on windows.
7878 target .(io.WriteCloser ).Close ()
7979 }
8080 if inPlace {
81- if err := os .RemoveAll (extractedApp .OriginalPath ); err != nil {
81+ if err := os .RemoveAll (extractedApp .Path ); err != nil {
8282 return errors .Wrap (err , "failed to erase previous application" )
8383 }
84- if err := os .Rename (mergeOutputFile , extractedApp .OriginalPath ); err != nil {
84+ if err := os .Rename (mergeOutputFile , extractedApp .Path ); err != nil {
8585 return errors .Wrap (err , "failed to rename new application" )
8686 }
8787 }
0 commit comments