chore: add nix flake for reproducible dev environment#695
Merged
tembleking merged 1 commit intomasterfrom Feb 6, 2026
Merged
Conversation
Add Nix flake configuration to provide a reproducible development environment with all required tools (go, terraform, goreleaser, golangci-lint, gofumpt, pre-commit, etc.). Update .envrc to automatically use the flake when nix is available. Remove testacc from pre-commit hooks (too slow for commits).
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a Nix flake configuration to enable reproducible development environments for the project. The changes streamline the developer experience by automating tool installation and environment setup through Nix, while also improving pre-commit hook performance by removing slow acceptance tests.
Changes:
- Added Nix flake configuration with all required development tools (Go, Terraform, goreleaser, linters, etc.)
- Updated
.envrcto automatically use the Nix flake when available - Removed slow
testacchook from pre-commit configuration
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| flake.nix | New Nix flake defining reproducible dev environment with all necessary tools |
| .envrc | Modified to load Nix flake before other configuration |
| .pre-commit-config.yaml | Removed testacc hook to improve commit performance |
| sysdig/resource_sysdig_secure_cloud_auth_account_test.go | Removed extraneous blank line |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
fcracker79
pushed a commit
that referenced
this pull request
Mar 5, 2026
- Add Nix flake configuration for reproducible development environment - Include all required tools: go, terraform, goreleaser, golangci-lint, gofumpt, pre-commit, etc. - Update `.envrc` to automatically use the flake when nix is available - Remove `testacc` from pre-commit hooks (too slow for local commits)
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.
Summary
.envrcto automatically use the flake when nix is availabletestaccfrom pre-commit hooks (too slow for local commits)Test plan
nix developand verify all tools are availabledirenv allowand verify environment loads correctlygit commitand verify pre-commit hooks pass