You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.
Trying to start Temporalite in a sandboxed environment (no $HOME or $XDG_CONFIG_HOME environment variable set), specifying an absolute path should work.
Actual Behavior
An error "$HOME is not defined" is returned.
Steps to Reproduce the Problem
unset HOME && temporalite start --namespace default -f $(mktemp -d)/test.db
In sandboxed environments os.UserConfigDir() can return an error which is not handled here. If the path to the db file is explicitly specified it should still work. Maybe if os.UserConfigDir() returns an error, the db should be created in the current directory as a fallback.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Expected Behavior
Trying to start Temporalite in a sandboxed environment (no $HOME or $XDG_CONFIG_HOME environment variable set), specifying an absolute path should work.
Actual Behavior
An error "$HOME is not defined" is returned.
Steps to Reproduce the Problem
unset HOME && temporalite start --namespace default -f $(mktemp -d)/test.db
Specifications
The problem is that the creation of a new server will fail when the default configuration is created - https://github.com/temporalio/temporalite/blob/f97473349ffc5f52640609c6cddbb61bfa96921f/internal/liteconfig/config.go#L81
In sandboxed environments
os.UserConfigDir()
can return an error which is not handled here. If the path to the db file is explicitly specified it should still work. Maybe ifos.UserConfigDir()
returns an error, the db should be created in the current directory as a fallback.The text was updated successfully, but these errors were encountered: