Skip to content

[Backport 2.9-maintenance] Fix a segfault in the git fetcher#6597

Merged
edolstra merged 1 commit into2.9-maintenancefrom
backport-6582-to-2.9-maintenance
May 31, 2022
Merged

[Backport 2.9-maintenance] Fix a segfault in the git fetcher#6597
edolstra merged 1 commit into2.9-maintenancefrom
backport-6582-to-2.9-maintenance

Conversation

@github-actions
Copy link

Bot-based backport to 2.9-maintenance, triggered by a label in #6582.

The git fetcher code used to dereference the (potentially empty) `ref`
input attribute. This was magically working, probably because the
compiler somehow outsmarted us, but is now blowing up with newer nixpkgs
versions.

Fix that by not trying to access this field while we don't know for sure
that it has been defined.

Fix #6554

(cherry picked from commit 027fd45)
@edolstra edolstra merged commit 53555df into 2.9-maintenance May 31, 2022
@edolstra edolstra deleted the backport-6582-to-2.9-maintenance branch May 31, 2022 15:19
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