Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

truffle compile: respect the use-case where files in different directories have same name. #2147

Closed
prographo opened this issue Jul 2, 2019 · 2 comments

Comments

@prographo
Copy link

prographo commented Jul 2, 2019

Create a file in contracts called Test.sol

pragma solidity 0.5.8;
contract Test { }

Create a subdirectory called sub1, copy Test.sol into that directory, run:

truffle compile

Only one Test.json file will be created in build/contracts, because the first is overwritten.

Remix does it correctly.

The example is contrived, but can happen for larger projects that share source code.

@prographo
Copy link
Author

I just renamed stuff to make it work .... It doesn't get lower priority that this, is it even worth bothering about? Probably not.

@gnidan
Copy link
Contributor

gnidan commented Jul 2, 2019

Not low priority at all! But tough to fix. We're working on it.

(This has an existing issue here: #1087)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants