Skip to content

Commit 36cd0a1

Browse files
chmoueltekton-robot
authored andcommitted
Remove .envrc and show an example in .envrc.sample
The .envrc file is used by direnv to load the environment variables and having this file in the repository can cause problems when the user has already one in his home directory. Moreover this file automatically loads silently the environment variables from .env.sample bypassing the explicit "direnv allow" that usually needed with .envrc which can be a potential security issue. This is still a useful file and to know about for contributors so we keep the sample file in .envrc.sample and let user copy it to .envrc if they want to use it. Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
1 parent 52bb407 commit 36cd0a1

3 files changed

Lines changed: 7 additions & 22 deletions

File tree

.env.sample

Lines changed: 0 additions & 4 deletions
This file was deleted.

.envrc

Lines changed: 0 additions & 18 deletions
This file was deleted.

.envrc.sample

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# shellcheck shell=bash
2+
# This is an example of a .envrc file for use with direnv
3+
#
4+
# See https://direnv.net/#getting-started for more information on how to get
5+
# started with direnv
6+
export GOMAXPROCS=6
7+
export KO_DOCKER_REPO=gcr.io/tektoncd/pipeline

0 commit comments

Comments
 (0)