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
Config.toml env variable replacement fails #210
Comments
Thanks for the report! Will try to reproduce this. |
Does it work if you do it like |
Yes, that works. |
I think you might need to use I'm not sure how/why it used to work though. Edit: setting the variable only makes it available in the current shell, not to subcommands - |
As for your 2 points above:
Agree, I should fix this.
I'd like to keep it as is for now - the |
Before I didn't even need to run Issue with having to put I liked the aliasing workflow as it meant that we didn't have to juggle two sets of configs, and less chances of errors/accidental VCS commits. I'll see if I can find a workaround, or have to adapt our workflow. Thanks for investigating 🙏 |
As a workaround: https://unix.stackexchange.com/a/79077. Still not clean, but it works |
@soedirgo, I did a bit more testing and identified package main
import (
- "github.com/joho/godotenv"
"github.com/supabase/cli/cmd"
)
func main() {
- _ = godotenv.Load("supabase/.env")
-
cmd.Execute()
} |
Thanks for the digging into this. |
ah, that explains why my method of aliasing I do think providing a more streamlined way for integrating with existing config conventions such as |
Yeah, I might revisit the secrets situation again. Thanks for your inputs! |
Hey @soedirgo not sure if i am doing something wrong but if I do
and go to http://localhost:54321/auth/v1/authorize?provider=discord Can you confirm it works for you? |
@pocin I was able to reproduce this. Thanks for the catch! |
🎉 This issue has been resolved in version 0.32.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
does the fix apply if I run |
FYI for others who stumble on this:
export GOTRUE_EXTERNAL_GITHUB_CLIENT_ID=id_abcd
export GOTRUE_EXTERNAL_GITHUB_SECRET=key_abcd Without the export, it'll fail even if (Probably would be good to put this in the docs or readme under https://github.com/supabase/gotrue#external-authentication-providers) |
Thanks @iwasrobbed, saved me! 🌟 |
Bug report
Describe the bug
When trying to run
supabase start/stop
using CLI versions0.21.0
or above, an error is shown if an env variable is used in theconfig.toml
.This used to work with
0.18.2
.Config
Let me know if more details are necessary.
Thanks!
To Reproduce
.env
file withGITHUB_CLIENT_ID=foo
as contentssource .env && supabase start
Expected behavior
The env variables should be interpolated into the
config.toml
.Ideally:
System information
v0.22.4
v16.13.0
The text was updated successfully, but these errors were encountered: