From a23023f7d60cf2bfa0b2a91030df4f7cbab28c56 Mon Sep 17 00:00:00 2001 From: Eric Meyer Date: Tue, 14 Nov 2017 09:10:48 -0600 Subject: [PATCH] Move environment configuration to root --- .gitignore | 2 +- README.md | 2 +- {pkg/config/environments => environments}/private.toml | 0 pkg/config/config.go | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename {pkg/config/environments => environments}/private.toml (100%) diff --git a/.gitignore b/.gitignore index 0288013e..7af61243 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,4 @@ Gododir/godobin-* test_data_dir/ vendor/ -pkg/config/environments/*.toml +environments/*.toml diff --git a/README.md b/README.md index b5d9ce04..5939d505 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,7 @@ The default location for Ethereum is: You can create configuration files for additional environments. * Among other things, it will require the IPC file path - * See `pkg/config/environments/private.toml` for an example + * See `environments/private.toml` for an example * You will need to do this if you want to run a node connecting to the public blockchain ## Running the Tests diff --git a/pkg/config/environments/private.toml b/environments/private.toml similarity index 100% rename from pkg/config/environments/private.toml rename to environments/private.toml diff --git a/pkg/config/config.go b/pkg/config/config.go index a6692ab3..34543aa3 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -27,7 +27,7 @@ var NewErrConfigFileNotFound = func(environment string) error { func NewConfig(environment string) (*Config, error) { filenameWithExtension := fmt.Sprintf("%s.toml", environment) - absolutePath := filepath.Join(ProjectRoot(), "pkg", "config", "environments", filenameWithExtension) + absolutePath := filepath.Join(ProjectRoot(), "environments", filenameWithExtension) config, err := parseConfigFile(absolutePath) if err != nil { return nil, NewErrConfigFileNotFound(environment)