Skip to content

Move GitHub input attribute validation into inputFromAttrs()#14656

Merged
edolstra merged 1 commit into
masterfrom
cleanup-github-attrs
Nov 26, 2025
Merged

Move GitHub input attribute validation into inputFromAttrs()#14656
edolstra merged 1 commit into
masterfrom
cleanup-github-attrs

Conversation

@edolstra
Copy link
Copy Markdown
Member

Motivation

Previously inputFromAttrs() didn't do any validation. inputFromURL() now calls inputFromAttrs(), so we only need to validate in one place.

Fixes #14655.

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

Previously inputFromAttrs() didn't do any validation. inputFromURL()
now calls inputFromAttrs(), so we only need to validate in one place.

Fixes #14655.
@github-actions github-actions Bot added the fetching Networking with the outside (non-Nix) world, input locking label Nov 26, 2025
Copy link
Copy Markdown
Contributor

@xokdvium xokdvium left a comment

Choose a reason for hiding this comment

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

Makes sense. Would be good to have a regression test for the issue since there's now unit test infra to set that up easily. Can be done separately though, this simplification is good

@edolstra edolstra enabled auto-merge November 26, 2025 19:13
@edolstra edolstra added this pull request to the merge queue Nov 26, 2025
Merged via the queue into master with commit aa0265f Nov 26, 2025
20 checks passed
@edolstra edolstra deleted the cleanup-github-attrs branch November 26, 2025 19:49
@edolstra edolstra mentioned this pull request Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fetching Networking with the outside (non-Nix) world, input locking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GitHub fetcher crashes evaluator when both ref and rev are specified

2 participants