diff --git a/pkg/config/config.go b/pkg/config/config.go index 313ae65a0..6050d7c71 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -286,10 +286,7 @@ type fileAlias File func (f *File) UnmarshalYAML(unmarshal func(interface{}) error) error { var str string if err := unmarshal(&str); err == nil { - *f = File{ - Source: str, - Destination: str, - } + *f = File{Source: str} return nil } diff --git a/pkg/config/config_archive_files_test.go b/pkg/config/config_archive_files_test.go index dd73750ea..24b63179b 100644 --- a/pkg/config/config_archive_files_test.go +++ b/pkg/config/config_archive_files_test.go @@ -18,10 +18,7 @@ files: `), &actual) require.NoError(t, err) require.Equal(t, []File{ - { - Source: "./script.sh", - Destination: "./script.sh", - }, + {Source: "./script.sh"}, }, actual.Files) } @@ -39,10 +36,7 @@ files: `), &actual) require.NoError(t, err) require.Equal(t, []File{ - { - Source: "./script.sh", - Destination: "./script.sh", - }, + {Source: "./script.sh"}, { Source: "./foo", Destination: "./bar",