Repository navigation
Run lint as a Nix flake check - #412
Merged
Merged
Conversation
Assisted-by: Replit
justin-replit
requested review from
komalagrawal-alt
and removed request for
a team
November 16, 2026 22:57
ryantm
approved these changes
Nov 23, 2026
Assisted-by: Replit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Make the existing
make generated && golangci-lint runjob available aschecks.x86_64-linux.lint. A successful package build alone does not run this lint job.This is one independently useful CI check, not a complete CI migration or permission to remove existing checks.
What changed
The flake exposes a hermetic lint derivation using the repository's pinned Go toolchain, module hash and linter. Its fileset includes all current Go source trees, embedded resources, integration-test fixtures, module manifests and the Makefile. It generates the same Python package map before running the same linter.
No production code, package outputs, platform lists, release configuration, or existing CI configuration changes. The network-backed integration suite and its JUnit reporting remain where they are; this check does not run or replace them.
Matching inputs can reuse the Nix result. No speedup is claimed. Full migration acceptance remains pending live suite execution, explicit cache/invalidation/failure evidence, comparable timing samples and required-check qualification.
Test plan
nix develop.nix build .#checks.x86_64-linux.lint --no-link -L.Risk: None. Standard checks: CI and code review cover it.
Safe to revert: this adds a check without removing or redirecting any existing job.
~ written by ⠕ Replit