-
Notifications
You must be signed in to change notification settings - Fork 167
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
Create builds dir helpers and switch over to using them #591
Conversation
ec320f3
to
cbb0b5e
Compare
Rebased onto master! |
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.
LGTM, though I'm not super familiar with everything this touches.
cbb0b5e
to
d6ba989
Compare
Rebased! |
Gonna merge this one soonish if there are no other comments. |
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.
Overall this looks great!
Prep for introducing a new `builds/` dir layout. This will allow us to adapt the whole codebase to a new layout at once by enhancing the `Builds` class. The next commit will switch over all the commands to use these helpers. I kept them separate for easier review.
Prep for switching those over to the new build layout. Most commands have pretty straightforward changes. Some of the more complex ones that deal with the build layout a lot were refactored a bit as prep for multi-arch.
d6ba989
to
dce2779
Compare
Rebased! ⬆️ |
Merging, thanks all for the reviews! |
Only the last two commits are new here. The rest are from #590.
The strategy here is to create a
Builds
class and make use of it in all the commands instead of manually synthesizing paths to build dirs. Outside of cosa, one can still (and will continue to be able to) do this of course, though once the multi-arch layout comes into effect, it will require knowing which layout one is dealing with (which should be clear for e.g. pipeline code). For cosa itself, theBuilds
class will abstract over these differences, so all commands will keep on working regardless of the actual layout.Requires #590.