all repos — x @ dc3865e5470f124ca8d604929a0275c46bf49ee3

Experiments and stuff

remove non-go tools

Alan Pearce
commit

dc3865e5470f124ca8d604929a0275c46bf49ee3

parent

9d91d346ccae67f37048c261e48014572ab017a2

6 files changed, 0 insertions(+), 188 deletions(-)

changed files
M .envrc.envrc
@@ -1,7 +1,1 @@
layout go -if type -P lorri &>/dev/null; then - eval "$(lorri direnv --flake .)" -else - echo 'while direnv evaluated .envrc, could not find the command "lorri" [https://github.com/nix-community/lorri]' - use flake -fi
M .gitignore.gitignore
@@ -25,5 +25,4 @@ # Go workspace file
go.work # End of https://www.toptal.com/developers/gitignore/api/go -/.pre-commit-config.yaml /result
D default.nix
@@ -1,21 +0,0 @@
-let - sources = import ./npins; - - pkgs = import sources.nixpkgs { }; - pre-commit-hooks = import sources.pre-commit-hooks; -in -{ - pre-commit-check = pre-commit-hooks.run { - src = ./.; - hooks = { - go-mod-tidy = { - enable = true; - name = "go-mod-tidy"; - description = "Run `go mod tidy`"; - types_or = [ "go" "go-mod" ]; - entry = "${pkgs.go}/bin/go mod tidy"; - pass_filenames = false; - }; - }; - }; -}
D flake.lock
@@ -1,87 +0,0 @@
-{ - "nodes": { - "flake-compat": { - "flake": false, - "locked": { - "lastModified": 1747046372, - "narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=", - "owner": "edolstra", - "repo": "flake-compat", - "rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885", - "type": "github" - }, - "original": { - "owner": "edolstra", - "repo": "flake-compat", - "type": "github" - } - }, - "gitignore": { - "inputs": { - "nixpkgs": [ - "pre-commit-hooks", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1709087332, - "narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=", - "owner": "hercules-ci", - "repo": "gitignore.nix", - "rev": "637db329424fd7e46cf4185293b9cc8c88c95394", - "type": "github" - }, - "original": { - "owner": "hercules-ci", - "repo": "gitignore.nix", - "type": "github" - } - }, - "nixpkgs": { - "locked": { - "lastModified": 1755027561, - "narHash": "sha256-IVft239Bc8p8Dtvf7UAACMG5P3ZV+3/aO28gXpGtMXI=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "005433b926e16227259a1843015b5b2b7f7d1fc3", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "pre-commit-hooks": { - "inputs": { - "flake-compat": "flake-compat", - "gitignore": "gitignore", - "nixpkgs": [ - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1754416808, - "narHash": "sha256-c6yg0EQ9xVESx6HGDOCMcyRSjaTpNJP10ef+6fRcofA=", - "owner": "cachix", - "repo": "git-hooks.nix", - "rev": "9c52372878df6911f9afc1e2a1391f55e4dfc864", - "type": "github" - }, - "original": { - "owner": "cachix", - "repo": "git-hooks.nix", - "type": "github" - } - }, - "root": { - "inputs": { - "nixpkgs": "nixpkgs", - "pre-commit-hooks": "pre-commit-hooks" - } - } - }, - "root": "root", - "version": 7 -}
D flake.nix
@@ -1,64 +0,0 @@
-{ - description = "A basic gomod2nix flake"; - - inputs = { - nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - - pre-commit-hooks.url = "github:cachix/git-hooks.nix"; - pre-commit-hooks.inputs.nixpkgs.follows = "nixpkgs"; - }; - - outputs = - { - self, - nixpkgs, - pre-commit-hooks, - }: - let - supportedSystems = [ - "x86_64-linux" - "aarch64-linux" - "x86_64-darwin" - "aarch64-darwin" - ]; - - forAllSystems = nixpkgs.lib.genAttrs supportedSystems; - in - { - checks = forAllSystems ( - system: - let - pkgs = import nixpkgs { inherit system; }; - in - { - pre-commit-check = pre-commit-hooks.lib.${system}.run { - src = ./.; - hooks = { - go-mod-tidy = { - enable = true; - name = "go-mod-tidy"; - description = "Run `go mod tidy`"; - types_or = [ - "go" - "go-mod" - ]; - entry = "${pkgs.go}/bin/go mod tidy"; - pass_filenames = false; - }; - }; - }; - } - ); - devShells = forAllSystems (system: { - default = nixpkgs.legacyPackages.${system}.mkShell { - inherit (self.checks.${system}.pre-commit-check) shellHook; - packages = with nixpkgs.legacyPackages.${system}; [ - go - go-licenses - gotools - just - ]; - }; - }); - }; -}
D justfile
@@ -1,9 +0,0 @@
-default: - @just --list --justfile {{ justfile() }} --unsorted - -check-licenses: - go-licenses check ./... - -update-all: - nix flake update - go get -u all