Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move common.tmp_dir default value definition to viper #49

Closed
wants to merge 3 commits into from

Conversation

joao-zanutto
Copy link
Contributor

@joao-zanutto joao-zanutto commented Apr 2, 2024

closes #48

@wwoytenko please feel free to list other default values that should be added

@wwoytenko wwoytenko self-requested a review April 3, 2024 12:21
Copy link
Contributor

@wwoytenko wwoytenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge the actual main branch

Add into root.init() the next bunch of code ( skip - completed in #51 )

	if err := viper.BindEnv("common.pg_bin_path", "COMMON_PG_BIN_PATH"); err != nil {
		log.Fatal().Err(err).Msg("")
	}

UPD:

I have added a function in root.go registerEnvVars - add the tmp dir path as well. The COMMON_PG_BIN_PATH is not required anymore right now

@wwoytenko
Copy link
Contributor

There was something broken in #51 and it will be fixed in #52. I will let you know one that is merged into the main

@wwoytenko
Copy link
Contributor

#52 is merged

@joao-zanutto
Copy link
Contributor Author

Closing this PR as we chose to go another route

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Env var values not being loaded without a config file definition
2 participants