Skip to content

Commit

Permalink
dapp: remappings: document new format, rename & expose legacy compat …
Browse files Browse the repository at this point in the history
…flag
  • Loading branch information
d-xo committed Aug 5, 2021
1 parent d145258 commit 9df52bb
Show file tree
Hide file tree
Showing 5 changed files with 296 additions and 134 deletions.
5 changes: 2 additions & 3 deletions src/dapp-tests/integration/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,12 @@ dapp_remappings() {

dapp_remappings

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

dapp_remappings_compat
Expand Down
5 changes: 3 additions & 2 deletions src/dapp/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

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

## [0.33.0] - 2021-07-01

Expand Down
Loading

0 comments on commit 9df52bb

Please sign in to comment.