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
The Spin "data dir" (e.g. ~/.local/share) is used as the root for plugin and template state. We have a request (part of #2555) to make this customizable to aid integration with other development tooling.
As suggested in the linked discussion, we could add support for an environment variable to override this algorithm. Bike-shedding on the name of that variable, I suggest SPIN_DATA_DIR.
In addition to adding this support, a bit of related clean-up would be nice:
Maybe rename default_data_dir to...spin_data_dir (?); there isn't anything really "default" about it, especially with the removal of TEST_PLUGINS_DIRECTORY
Separately, should we do the same for "cache" (used by badger, OCI) and "config" (OCI registry auth) dirs?
The Spin "data dir" (e.g.
~/.local/share
) is used as the root for plugin and template state. We have a request (part of #2555) to make this customizable to aid integration with other development tooling.The data dir is constructed here:
spin/crates/common/src/data_dir.rs
Line 7 in aedc2b8
As suggested in the linked discussion, we could add support for an environment variable to override this algorithm. Bike-shedding on the name of that variable, I suggest
SPIN_DATA_DIR
.In addition to adding this support, a bit of related clean-up would be nice:
TEST_PLUGINS_DIRECTORY
with this new env vardefault_data_dir
to...spin_data_dir
(?); there isn't anything really "default" about it, especially with the removal ofTEST_PLUGINS_DIRECTORY
Separately, should we do the same for "cache" (used by badger, OCI) and "config" (OCI registry auth) dirs?
cc @jandubois, @itowlson
The text was updated successfully, but these errors were encountered: