Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rdmd does not track dependencies properly for --extra-file #99

Open
mdparker opened this issue Jun 21, 2023 · 0 comments
Open

rdmd does not track dependencies properly for --extra-file #99

mdparker opened this issue Jun 21, 2023 · 0 comments

Comments

@mdparker
Copy link
Member

deadalnix reported this on 2021-09-02T22:08:52Z

Transfered from https://issues.dlang.org/show_bug.cgi?id=22268

CC List

  • razvan.nitu1305

Description

$ rdmd -m64 -Isrc -w -debug -g -unittest -i --extra-file=src/module1.d --extra-file=src/module2.d --eval="/* Do nothing */"

This run, while properly running the unittests in the proper modules, will generate a faulty dependency file that only contain standard library and druntime stuff.

The same happens when using a module instead an --eval, in which case, only the dependency of that module are tracked properly, and the dependencies of the modules added via --extra-file remain untracked.

This is a major issue as it leads rdmd to reuse cache entries when it shouldn't and run outdated code.

Comments

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

No branches or pull requests

1 participant