Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(chores): Add missing tools to nix-shell #352

Merged
merged 16 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use nix
2 changes: 1 addition & 1 deletion docs/developer-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ git remote -v
```

Install the build dependencies.
* Run `make bootstrap` to install the required Go tools
* Run `make bootstrap` to install the required Go tools, Nix users can run `nix-shell`, it will bring up a shell with required tools installed

## Git Development Workflow

Expand Down
2 changes: 2 additions & 0 deletions nix/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.go/
.tmp/
20 changes: 18 additions & 2 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,24 @@ in
pkgs.mkShell {
name = "scripts-shell";
buildInputs = with pkgs; [
chart-testing
ginkgo
git
go_1_19
golint
kubectl
kubernetes-helm
gnumake
minikube
semver-tool
yq-go
chart-testing
];
}
shellHook = ''
export GOPATH=$(pwd)/nix/.go
export GOCACHE=$(pwd)/nix/.go/cache
export TMPDIR=$(pwd)/nix/.tmp
export PATH=$GOPATH/bin:$PATH
mkdir -p "$TMPDIR"
tiagolobocastro marked this conversation as resolved.
Show resolved Hide resolved
go install sigs.k8s.io/controller-tools/cmd/[email protected]
'';
}
Loading