From 51058470e585073f79fdb5ad4ce89e1867e47716 Mon Sep 17 00:00:00 2001 From: Erin Call Date: Thu, 2 Jan 2020 09:04:52 -0800 Subject: [PATCH] Load .env files on startup [#6] --- cmd/drone-helm/main.go | 1 + go.mod | 1 + go.sum | 2 ++ 3 files changed, 4 insertions(+) diff --git a/cmd/drone-helm/main.go b/cmd/drone-helm/main.go index cf0b0e6..1d6c2b4 100644 --- a/cmd/drone-helm/main.go +++ b/cmd/drone-helm/main.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + _ "github.com/joho/godotenv/autoload" "github.com/pelotech/drone-helm3/internal/helm" ) diff --git a/go.mod b/go.mod index c34f191..e3fc56f 100644 --- a/go.mod +++ b/go.mod @@ -4,6 +4,7 @@ go 1.13 require ( github.com/golang/mock v1.3.1 + github.com/joho/godotenv v1.3.0 // indirect github.com/kelseyhightower/envconfig v1.4.0 github.com/stretchr/testify v1.4.0 golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f // indirect diff --git a/go.sum b/go.sum index c0d66c9..2b8b3f0 100644 --- a/go.sum +++ b/go.sum @@ -2,6 +2,8 @@ github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8 github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang/mock v1.3.1 h1:qGJ6qTW+x6xX/my+8YUVl4WNpX9B7+/l2tRsHGZ7f2s= github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= +github.com/joho/godotenv v1.3.0 h1:Zjp+RcGpHhGlrMbJzXTrZZPrWj+1vfm90La1wgB6Bhc= +github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg= github.com/kelseyhightower/envconfig v1.4.0 h1:Im6hONhd3pLkfDFsbRgu68RDNkGF1r3dvMUtDTo2cv8= github.com/kelseyhightower/envconfig v1.4.0/go.mod h1:cccZRl6mQpaq41TPp5QxidR+Sa3axMbJDNb//FQX6Gg= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=