Skip to content

Conversation

@exsplashit
Copy link
Contributor

For nixos package use gomod2nix as go build utility for reproducible go build. #24

Copilot AI review requested due to automatic review settings November 6, 2025 14:54
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 migrates the Nix flake from using buildGoModule to gomod2nix's buildGoApplication for building the Go project. This change improves reproducibility and dependency management by using a vendored TOML file instead of Nix-managed vendorHash.

  • Adds gomod2nix as a new flake input dependency
  • Replaces buildGoModule with buildGoApplication and introduces a gomod2nix.toml file for dependency management
  • Adds the gomod2nix CLI tool to the development shell

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
gomod2nix.toml New dependency lock file containing all Go module dependencies with their versions and hashes
flake.nix Migrated from buildGoModule to buildGoApplication, added gomod2nix input, and updated development shell
flake.lock Updated with new gomod2nix input and additional flake-utils dependency

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

Copy link
Contributor

@destari destari left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks!!

@destari destari merged commit 3a25221 into control-theory:main Nov 12, 2025
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