terraform-provider-stackitp.../scripts/project.sh
Andre Harms 71b7c69f10
Some checks failed
CI Workflow / Check GoReleaser config (pull_request) Successful in 6s
CI Workflow / CI run tests (pull_request) Failing after 13m58s
CI Workflow / CI run build and linting (pull_request) Failing after 13m47s
CI Workflow / Code coverage report (pull_request) Has been skipped
CI Workflow / Test readiness for publishing provider (pull_request) Failing after 21m5s
fix: add goimports installation to project script
2026-02-18 16:37:02 +01:00

23 lines
628 B
Bash
Executable file

#!/usr/bin/env bash
# This script is used to manage the project, only used for installing the required tools for now
# Usage: ./project.sh [action]
# * tools: Install required tools to run the project
set -eo pipefail
ROOT_DIR=$(git rev-parse --show-toplevel)
action=$1
if [ "$action" = "help" ]; then
[ -f "$0".man ] && man "$0".man || echo "No help, please read the script in ${script}, we will add help later"
elif [ "$action" = "tools" ]; then
cd ${ROOT_DIR}
go mod download
go install golang.org/x/tools/cmd/goimports@v0.42.0
else
echo "Invalid action: '$action', please use $0 help for help"
fi