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

eval: Only support Nixpkgs #649

Open
wants to merge 1 commit into
base: released
Choose a base branch
from

Conversation

infinisil
Copy link
Member

Ofborg seems only used on Nixpkgs with no intention of using it for other repos, so let's not have code to support that unless needed.

@@ -290,7 +290,13 @@ impl<'a, E: stats::SysEvents + 'static> OneEval<'a, E> {
}
};

let mut evaluation_strategy: Box<dyn eval::EvaluationStrategy> = if job.is_nixpkgs() {
if !job.is_nixpkgs() {
error!(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will only log an error, not cause the function to exit with an error; you'll need to return Err(.........); after this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried this, but I'm not sure where the error should be handled. Ideally already at ofborg startup.

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.

2 participants