Skip to content

Configuration not parsed if --template is provided #73

@dwt

Description

@dwt

Hi there,

while looking at the way fence starts up and reads configuration it seems not to behave how I expected. This may be because my mental model is wrong, so let's describe.

  • I would have expected that configuration at ~/.config/fence/fence.json is always read, except when I provide a custom --settings some/other/path.json argument
  • That means, that any customizations that this settings file does (e.g. adding paths to the code sandbox should apply when I run fence -t code some_command

This does not seem to be the case? It seems that fence -t code ls only loads the code template, not its extensions from my custom config file.

Is that intentional?

related but not part of this bug report: How do I provide a configuration that defines extensions for various default sandbox templates? (for example by adding ~/.pi/** to the writeAllowed directive?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions