-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FR-5403 - Pathname for manual customization not relative to image definition file #144
Conversation
Codecov Report
@@ Coverage Diff @@
## main #144 +/- ##
==========================================
+ Coverage 89.17% 90.44% +1.26%
==========================================
Files 11 11
Lines 2449 2449
==========================================
+ Hits 2184 2215 +31
+ Misses 244 208 -36
- Partials 21 26 +5
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 on the changes, thanks! One recommendation would be do update the README.rst manual customization path entries to also mention that the path will be relative to the definition file.
// Copy the file into the specified location in the chroot | ||
dest := filepath.Join(targetDir, copyFile.Dest) | ||
func manualCopyFile(customizations []*imagedefinition.CopyFile, confDefPath string, targetDir string, debug bool) error { | ||
for _, c := range customizations { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, looks much cleaner this way indeed!
…age_definition or model_assertion)
…andlers Other benefits: - removes usage of reflection in this function and handlers. - make it obvious when test cases are not handled
8762e99
to
5e2322d
Compare
No description provided.