From 0a68718459424da5230c8c171714fb0be1eefe3a Mon Sep 17 00:00:00 2001 From: sapcc-bot Date: Tue, 8 Oct 2024 16:00:59 +0000 Subject: [PATCH] Run go-makefile-maker --- .envrc | 6 ++++++ shell.nix | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 .envrc create mode 100644 shell.nix diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..8b42278 --- /dev/null +++ b/.envrc @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +if type -P lorri &>/dev/null; then + eval "$(lorri direnv)" +else + use nix +fi diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..3c99a6d --- /dev/null +++ b/shell.nix @@ -0,0 +1,18 @@ +{ pkgs ? import { } }: + +with pkgs; + +mkShell { + nativeBuildInputs = [ + ginkgo + go-licence-detector + go_1_23 + golangci-lint + gotools # goimports + kubernetes-controller-tools # controller-gen + setup-envtest + + # keep this line if you use bash + bashInteractive + ]; +}