Skip to content

Import two identical modules at different addresses, without having two duplicate packages locally. #694

Answered by vgao1996
cawthorne asked this question in Questions
Discussion options

You must be logged in to vote

Hi @cawthorne, thanks for bringing this up!

Currently our package system lacks these two critical features:

  • Package renaming
    • When you try to force it (C = { local = "../B" }), you get an error complaining that the names mismatch
    • Ideally, we should extend it with syntax that allows renaming, such as C = { local = "../B", rename = "C" }
  • Address renaming
    • There is the addr_subst syntax, but I investigated it a few days ago, and can confirm it's broken.

I know it's not ideal, but for now the best workaround is indeed to duplicate the source package.

I'm currently working on a new package system and it is part of the plan to get these properly supported, so stay tuned.

Also please let m…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cawthorne
Comment options

Answer selected by cawthorne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants