Make runtime paths configurable at link time #104200

Manually merged
Sybren A. Stüvel merged 1 commits from ZedDB/flamenco:config into main 2023-04-04 15:41:41 +02:00

I know there were some notes you had on the new comments, but I'll post the unchanged commit here so I can do all changes in one go.

I know there were some notes you had on the new comments, but I'll post the unchanged commit here so I can do all changes in one go.
Sebastian Parborg added 1 commit 2023-03-21 16:06:37 +01:00
Sybren A. Stüvel requested changes 2023-03-21 16:15:05 +01:00
Sybren A. Stüvel left a comment
Owner

Nice patch, just some minor notes.

Nice patch, just some minor notes.
@ -10,10 +10,16 @@ import (
"github.com/adrg/xdg"
)
// This variable can be set at link time to manually specify the home directory for the worker.

Replace This variable can be set with the actual name of the variable, customHome can be set

Also remove the "manually", as this can be done in an automated fashion as well.

Replace `This variable can be set` with the actual name of the variable, `customHome can be set` Also remove the "manually", as this can be done in an automated fashion as well.
ZedDB marked this conversation as resolved
@ -11,2 +11,4 @@
)
// This variable can be set at link time to manually specify the home directory for the worker.
var customHome = ""

Add that this is used in InFlamencoHome() and is still overruled if the FLAMENCO_HOME environment variable is set.

Add that this is used in `InFlamencoHome()` and is still overruled if the `FLAMENCO_HOME` environment variable is set.
ZedDB marked this conversation as resolved
@ -27,3 +27,2 @@
const (
configFilename = "flamenco-manager.yaml"
var configFilename = "flamenco-manager.yaml"

Document why this is a variable, and that it's not intended to be changed while Flamenco Manager is running.

Document why this is a variable, and that it's not intended to be changed while Flamenco Manager is running.
ZedDB marked this conversation as resolved
@ -23,3 +23,3 @@
)
const (
var (

Same comment as above.

Same comment as above.
ZedDB marked this conversation as resolved
Sebastian Parborg force-pushed config from b9f3215743 to d24f96bdff 2023-03-22 12:07:03 +01:00 Compare
Author
Member

Done! :)

Done! :)
Sybren A. Stüvel approved these changes 2023-04-04 12:25:05 +02:00

Manually merged into f6f1ebdd05, but the 'merge conflict checking' is blocking me from marking it as such.

Manually merged into f6f1ebdd053ed208c2d20384d0ec568b170ebf23, but the 'merge conflict checking' is blocking me from marking it as such.
Author
Member

I guess we can close this manually then?

I guess we can close this manually then?

Nah, I just had to edit the project settings and allow marking as 'manually merged'.

Nah, I just had to edit the project settings and allow marking as 'manually merged'.
Sybren A. Stüvel manually merged commit f6f1ebdd05 into main 2023-04-04 15:41:41 +02:00
Sign in to join this conversation.
No description provided.