Skip to content
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

WIP: Introduce an one-off-build command to reproduce ofBorg locally #562

Draft
wants to merge 2 commits into
base: released
Choose a base branch
from

Conversation

andir
Copy link
Member

@andir andir commented May 16, 2021

Motivated by trying to review a change in how ofBorg reports build
errors I started hacking on a command that allowed me to execute just
the build part of ofBorg without setting up a local queue or config
files.

This is still a WIP that is hardcoded to exactly one PR and commit
revision. I plan to convert all the constants to Clap CLI arguments once
I moved the build system of the project to naersk and can then introduce
new dependencies.

Things to be done:

  • Move constants to Clap
    • The system attribute should be defaulted to the current system.
      We can use the target_os and target_arch values for that.
      The user should still be able to override thos tho...
  • Make the logging a bit prettier
  • Implement a custom Notification receiver that just logs the
    messages as they come in.
  • (idea) add support for the eval part as well so we can run ofBorg
    locally just like we can run nixpkgs-review.

andir added 2 commits May 16, 2021 16:53
The `origin/` prefix will be added by the actual git cloner later on
when `co.checkout_origin_ref` is called further down the function.
Motivated by trying to review a change in how ofBorg reports build
errors I started hacking on a command that allowed me to execute just
the build part of ofBorg without setting up a local queue or config
files.

This is still a WIP that is hardcoded to exactly one PR and commit
revision. I plan to convert all the constants to Clap CLI arguments once
I moved the build system of the project to naersk and can then introduce
new dependencies.

Things to be done:

 - [ ] Move constants to Clap
   - [ ] The system attribute should be defaulted to the current system.
         We can use the `target_os` and `target_arch` values for that.
	 The user should still be able to override thos tho...
 - [ ] Make the logging a bit prettier
 - [ ] Implement a custom Notification receiver that just logs the
       messages as they come in.
 - [ ] (idea) add support for the eval part as well so we can run ofBorg
        locally just like we can run nixpkgs-review.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant