I'm using truffle to create a contract that extends another contract in a GitHub repository e.g.
contract Consumer is Chainlinked {
}
My first problem is that I an unable to import directly from a Github repository as is suggested here https://remix.readthedocs.io/en/latest/tutorial_import.html
import "https://github.com/smartcontractkit/chainlink/solidity/contracts/Chainlink.sol";
results in the error
Error: Could not find https://github.com/smartcontractkit/chainlink/solidity/contracts/Chainlink.sol from any sources; imported from /home/software/ib/oracle/contracts/Consumer.sol
So I've copied the file locally. My second problem is that the imported files import a number of other files such as
import "solidity-cborutils/contracts/CBOR.sol";
These don't resolve locally, so I get an error during compile. Now I could copy all dependencies locally as well, but this seems horribly ineffecient and error prone.
Is there a better way of doing this?