Skip to content

Commit 9df52bb

Browse files
committed
dapp: remappings: document new format, rename & expose legacy compat flag
1 parent d145258 commit 9df52bb

File tree

5 files changed

+296
-134
lines changed

5 files changed

+296
-134
lines changed

src/dapp-tests/integration/tests.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,12 @@ dapp_remappings() {
6060

6161
dapp_remappings
6262

63-
# tests dapp remappings on a large legacy project with many implicit imports
63+
# tests dapp remappings on a large legacy project with many transitive imports
6464
dapp_remappings_compat() {
6565
REV="bc6d7657f0f5190f65051543199e1b47bf29932b"
6666
TMPDIR=$(mktemp -d)
6767
git clone https://github.com/dapp-org/tinlake-tests "$TMPDIR"
68-
export DAPP_ALLOW_IMPLICIT_IMPORTS=yes
69-
(cd "$TMPDIR" && git checkout "$REV" && dapp update && dapp --use solc:0.7.6 build)
68+
(cd "$TMPDIR" && git checkout "$REV" && dapp update && dapp --use solc:0.7.6 build --allow-transitive-imports)
7069
}
7170

7271
dapp_remappings_compat

src/dapp/CHANGELOG.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010

1111
- `dapp --use` now uses the solc binaries from https://binaries.soliditylang.org/ instead of the
1212
versions built from source via nix
13-
- `dapp remappings` now issues a warning instead of failing with a hard error in case of mistmatched
14-
package versions in the dependency tree
13+
- `dapp remappings` now generates a unique set of remappings for each package in the dependency
14+
tree that point into that pacakge's lib dir, allowing for multiple versions of the same package
15+
to coexist in the dependency tree. More information in the [README](./README.md#package-structure-and-dependency-management).
1516

1617
## [0.33.0] - 2021-07-01
1718

0 commit comments

Comments
 (0)