Skip to content

Add configurable license installation directory to dmf-get - #336

Merged
JohnAmadis merged 1 commit into
developfrom
feat/dmf-get-license-dir
Oct 19, 2026
Merged

JohnAmadis merged 1 commit into
developfrom
feat/dmf-get-license-dir

Conversation

@JaxCalder

Copy link
Copy Markdown
Contributor

dmf-get currently installs licenses only at destinations specified in package .dmr files. Add --license-dir <path> and the DMOD_LICENSE_DIR environment variable so callers can collect them separately, for example:

dmf-get --mini --license-dir ./licenses -y -d dependencies.dmd

License resources are installed under <path>/<module>/<source-name>, including recursively installed dependencies. The CLI option overrides the environment variable; without either setting, existing destinations and mini-mode behavior are preserved. An explicit license directory includes licenses in mini mode without changing license acceptance. Directory resources copy their contents without nesting on repeated extraction, and failures writing requested licenses produce a failing installation result.

Updates CLI help and documentation. Adds local-package integration coverage for default destinations, relative/absolute paths and spaces, multiple licenses, directory resources, dependencies and .dmd input, mini mode, environment precedence, rejection of license terms, and invalid or unwritable destinations. The existing integration suite invokes the new tests.

Validation:

  • Native x86_64 CMake build of dmf-get: passed.
  • Full tests/integration/test_dmf_get.sh suite, including the new license tests: passed.
  • Shell syntax checks and git diff --check: passed.

@JohnAmadis
JohnAmadis merged commit ec28ead into develop Oct 19, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants