Skip to content

Run lint as a Nix flake check - #412

Merged
ryantm merged 2 commits into
mainfrom
ci/lint-check
Nov 23, 2026
Merged

ryantm merged 2 commits into
mainfrom
ci/lint-check

Conversation

@justin-replit

@justin-replit justin-replit commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Why

Make the existing make generated && golangci-lint run job available as checks.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

  • Passed the original command through nix develop.
  • Passed nix build .#checks.x86_64-linux.lint --no-link -L.
  • Confirmed an unrelated staged README edit preserves the lint derivation.
  • A staged undefined function in the CLI changed the lint derivation and caused a typecheck failure. Reverting it restored the original derivation and a passing build. These are local checks, not live CI-suite evidence.
  • Live CI is pending. Local check time is not end-to-end CI time.

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

Assisted-by: Replit
@justin-replit
justin-replit requested a review from a team as a code owner November 16, 2026 22:57
@justin-replit
justin-replit requested review from komalagrawal-alt and removed request for a team November 16, 2026 22:57
Assisted-by: Replit
@ryantm
ryantm merged commit aa94808 into main Nov 23, 2026
10 checks passed
@ryantm
ryantm deleted the ci/lint-check branch November 23, 2026 20:13
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