daml/docs/source/tools
Moritz Kiefer 2ccbd7f865
Add a module-prefixes field to rename all modules in a pkg (#6105)
* Add a module-prefixes field to rename all modules in a pkg

This PR adds a `module-prefixes` field to `daml.yaml` a a shorthand
for specifying a `--package` flag that renames all modules in a
package to have the same prefix.

The docs are updated to describe how you can use this field and there
is a test case that makes sure it works.

fixes #4948

changelog_begin

- [DAML Compiler] You can now use the new ``module-prefixes`` field in
  ``daml.yaml`` to add a prefix to all modules from a dependency. This
  is particularly useful for handling colliding module names during
  upgrades. See
  https://docs.daml.com/daml/reference/packages.html#handling-module-name-collisions
  for more information.

changelog_end

* Update compiler/damlc/daml-opts/daml-opts-types/DA/Daml/Options/Packaging/Metadata.hs

Co-authored-by: Martin Huschenbett <martin.huschenbett@posteo.me>

* Improve docs and fix broken suggestion

changelog_begin
changelog_end

Co-authored-by: Martin Huschenbett <martin.huschenbett@posteo.me>
2020-05-28 10:57:00 +00:00
..
images Adding visual -web command (#3009) 2019-09-27 10:26:20 -04:00
ledger-api-test-tool Stop publishing to Bintray (#5422) 2020-04-03 16:22:00 +02:00
navigator Replace quickstart with new getting started guide (#5392) 2020-04-03 15:44:19 +00:00
assistant.rst Add a module-prefixes field to rename all modules in a pkg (#6105) 2020-05-28 10:57:00 +00:00
codegen.rst Added a note on required codegen dependencies (#5853) 2020-05-07 07:58:36 +02:00
extractor.rst replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00
sandbox.rst Fixing the text in jwt.io link. (#5848) 2020-05-05 16:26:18 +00:00
visual.rst Replace quickstart with new getting started guide (#5392) 2020-04-03 15:44:19 +00:00