-
Notifications
You must be signed in to change notification settings - Fork 172
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
refactor: normal creator #3114
base: main
Are you sure you want to change the base?
refactor: normal creator #3114
Conversation
✅ Deploy Preview for zarf-docs canceled.
|
ae6c1dc
to
6dbbc6b
Compare
47c5dd1
to
5b54240
Compare
cbd05e3
to
ca69d35
Compare
3c36c9d
to
4a829c6
Compare
4a829c6
to
8cd0d1c
Compare
for idx, component := range pkg.Components { | ||
pkg.Components[idx], _ = deprecated.MigrateComponent(pkg.Build, component) | ||
} | ||
// TODO (phillebaba): Figure out when migrations should actually be run. |
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.
Address this.
8cd0d1c
to
673af5f
Compare
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.
Great work, love that we are no longer changing directory. Left a few comments
if err != nil { | ||
return err | ||
} | ||
defer pkgClient.ClearTempPaths() |
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.
IMO we should continue to print the lint table. The error message currently is
linting error found 1 instance(s)
, which doesn't provide enough context to easily figure out what went wrong
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.
We print linting errors in a lot of places, and this creates a lot of noise and complexity. If you look at a lot of other tools they will not lint during build, instead it is a separate command. We have a separate command today which users should use.
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.
Ok I added the printing back, but we should evaluate this in the future.
if err != nil { | ||
return err | ||
} | ||
defer os.RemoveAll(tmpBuildPath) |
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.
This should be tmpDir
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.
tmpDir is already used in this function.
9141561
to
60a658b
Compare
Signed-off-by: Philip Laine <[email protected]>
60a658b
to
dcd8b19
Compare
Description
This change refactors the package creation.
Related Issue
Relates to #2969
Checklist before merging