summaryrefslogtreecommitdiff
path: root/config/variant.go
diff options
context:
space:
mode:
Diffstat (limited to 'config/variant.go')
-rw-r--r--config/variant.go14
1 files changed, 4 insertions, 10 deletions
diff --git a/config/variant.go b/config/variant.go
index 7886cfe..cc4d802 100644
--- a/config/variant.go
+++ b/config/variant.go
@@ -23,14 +23,12 @@ func (vc *VariantConfig) Merge(vc2 VariantConfig) {
}
// InstructionsForPhase injects build instructions related to artifact
-// copying, volume definition or copying of application files, and all common
-// configuration.
+// copying, copying of application files, and all common configuration.
//
// PhaseInstall
//
-// If VariantConfig.Copies is not set, either copy in application files or
-// define a shared volume. Otherwise, delegate to
-// ArtifactsConfig.InstructionsForPhase.
+// If VariantConfig.Copies is not set, copy in application files. Otherwise,
+// delegate to ArtifactsConfig.InstructionsForPhase.
//
func (vc *VariantConfig) InstructionsForPhase(phase build.Phase) []build.Instruction {
instructions := vc.CommonConfig.InstructionsForPhase(phase)
@@ -53,11 +51,7 @@ func (vc *VariantConfig) InstructionsForPhase(phase build.Phase) []build.Instruc
uid, gid = vc.Lives.UID, vc.Lives.GID
if vc.Copies == "" {
- if vc.SharedVolume.True {
- instructions = append(instructions, build.Volume{vc.Lives.In})
- } else {
- instructions = append(instructions, build.Copy{[]string{"."}, "."})
- }
+ instructions = append(instructions, build.Copy{[]string{"."}, "."})
}
case build.PhasePostInstall: