diff options
| author | Joey Hess <joeyh@joeyh.name> | 2015-12-06 17:26:19 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2015-12-06 17:26:19 -0400 |
| commit | aad109c66f57abbfc5cfb0dc8288928ee9a01a7e (patch) | |
| tree | 6f6290f3977134fff73381c5fd8a65e46145a717 /doc | |
| parent | cf45e508b6f607bf16ab345e14f69e0cee3cf305 (diff) | |
comment
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/todo/proposal:_env_vars_PROPELLOR__95__SPIN__95__BRANCH___38___PROPELLOR__95__DIRTY__95__NOSPIN/comment_1_432c6009fbe2309af81a47658173f753._comment | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/todo/proposal:_env_vars_PROPELLOR__95__SPIN__95__BRANCH___38___PROPELLOR__95__DIRTY__95__NOSPIN/comment_1_432c6009fbe2309af81a47658173f753._comment b/doc/todo/proposal:_env_vars_PROPELLOR__95__SPIN__95__BRANCH___38___PROPELLOR__95__DIRTY__95__NOSPIN/comment_1_432c6009fbe2309af81a47658173f753._comment new file mode 100644 index 00000000..9b9ea864 --- /dev/null +++ b/doc/todo/proposal:_env_vars_PROPELLOR__95__SPIN__95__BRANCH___38___PROPELLOR__95__DIRTY__95__NOSPIN/comment_1_432c6009fbe2309af81a47658173f753._comment @@ -0,0 +1,27 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2015-12-06T21:14:36Z" + content=""" +I'd use `PROPELLOR_SPIN_BRANCH`. No objections to `PROPELLOR_DIRTY_NOSPIN` +as long as it's not default. + +Note that Cron.runPropellor does not use /usr/bin/propellor, and there are +other ways of running propellor that don't use that wrapper. So I don't +think the wrapper is the place to implement this kind of thing. + +Why use environment variables for configuration? That makes it hard to make +sure propellor gets the same configuration every way it can be run. And, +propellor has a config file. :) + +Implementation could be something like, add a `configuredMain` that takes a +monoidial configuration value for such global config settings. +(so `defaultMain = configuredMain mempty`) + +Hmm, I suppose the issue with `PROPELLOR_SPIN_BRANCH` is that when a +different branch is checked out, that branch's config.hs would not have that +configured, or would perhaps set it to use that branch. So, that's why +you were thinking environment variables? + +Maybe use git-config? +"""]] |
