Skip to content

Nix#63

Merged
UnstoppableMango merged 7 commits intomainfrom
nix
Nov 30, 2025
Merged

Nix#63
UnstoppableMango merged 7 commits intomainfrom
nix

Conversation

@UnstoppableMango
Copy link
Contributor

  • WIP
  • WIP
  • Update deps
  • That worked I guess
  • CI and stuff

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds Nix flake support to the devctl project, enabling reproducible builds and development environments through Nix. The changes include dependency updates, test adaptations for Nix environments, and CI integration.

  • Adds Nix flake configuration with gomod2nix for Go dependency management
  • Updates GitHub Actions CI to include Nix build validation and gomod2nix synchronization checks
  • Refactors test suite to work in Nix build environments by replacing git repository detection with manual path construction

Reviewed changes

Copilot reviewed 10 out of 13 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
flake.nix Defines Nix flake with build configuration, development shell, and multi-platform support
flake.lock Lock file pinning Nix flake input versions
gomod2nix.toml Generated Go module dependency hashes for Nix builds
go.mod Adds gomod2nix as a Go tool and updates unmango/go dependency to v0.10.2
go.sum Updates checksums for new and updated dependencies
test/e2e/e2e_suite_test.go Replaces git.Root with manual path construction using os.Getwd and filepath.Join
pkg/work/work.go Updates git.Root call to git.RootContext for consistency
pkg/work/work_test.go Changes error assertion from exact match to substring match for compatibility
pkg/work/cmd_test.go Adds gitInit helper function to create temporary git repositories for testing
Makefile Adds Nix-related variables and gomod2nix.toml build target, replaces WORKING_DIR with CURDIR
.github/workflows/ci.yml Adds Nix build job and gomod2nix synchronization check job
.gitignore Excludes Nix-specific artifacts (.direnv/, result)
.dprint.json Excludes gomod2nix.toml from formatting

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

UnstoppableMango and others added 2 commits November 30, 2025 14:30
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@UnstoppableMango UnstoppableMango merged commit 4ab5059 into main Nov 30, 2025
4 checks passed
@UnstoppableMango UnstoppableMango deleted the nix branch November 30, 2025 20:34
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

Comments