diff --git a/.env.sample b/.env.sample deleted file mode 100644 index 9d2db2f3453..00000000000 --- a/.env.sample +++ /dev/null @@ -1,4 +0,0 @@ -# shellcheck shell=bash -# This is an example of a .env file -export GOMAXPROCS=6 -export KO_DOCKER_REPO=gcr.io/tektoncd/pipeline diff --git a/.envrc b/.envrc deleted file mode 100644 index 57593a21e40..00000000000 --- a/.envrc +++ /dev/null @@ -1,18 +0,0 @@ -# shellcheck shell=bash - -# If .env missing; restore from .env.sample and validate -# See https://github.com/direnv/direnv/wiki/.envrc-Boilerplate -if [[ -f .env.sample ]]; then - if [[ ! -f .env ]]; then - if ! command -v createnv > /dev/null; then - echo 'WARN|Createnv missing; try: pyenv local 3.x && pip install createnv' - else - createnv --use-default --overwrite || echo 'ERROR|https://github.com/cuducos/createnv' - if command dotenv-linter --version >&/dev/null; then - dotenv-linter .env || echo 'ERROR|https://dotenv-linter.github.io' - fi - fi - fi -fi - -dotenv_if_exists || direnv status # https://direnv.net/man/direnv-stdlib.1.html diff --git a/.envrc.sample b/.envrc.sample new file mode 100644 index 00000000000..cea7a728f1b --- /dev/null +++ b/.envrc.sample @@ -0,0 +1,7 @@ +# shellcheck shell=bash +# This is an example of a .envrc file for use with direnv +# +# See https://direnv.net/#getting-started for more information on how to get +# started with direnv +export GOMAXPROCS=6 +export KO_DOCKER_REPO=gcr.io/tektoncd/pipeline