Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: disallow dependency package name collision in forc-pkg (#6888)
## Description closes #6861 `forc` was allowing dependency name being the same (through the use of `package` alias and the declaration itself) as the project name. The following two cases are now invalid and produces an error on the forc-pkg side before going to the compiler. ```TOML [project] authors = ["Fuel Labs <[email protected]>"] entry = "main.sw" license = "Apache-2.0" name = "lib_contract" [dependencies] lib_contract = { path = "../lib_contract_abi/", package = "lib_contract_abi" } ``` and ```TOML [project] authors = ["Fuel Labs <[email protected]>"] entry = "main.sw" license = "Apache-2.0" name = "lib_contract_abi" [dependencies] lib_contract = { path = "../lib_contract_abi/", package = "lib_contract_abi" } ``` --------- Co-authored-by: Joshua Batty <[email protected]>
- Loading branch information