8000 Add tests of dependency on an alias by aalekseyev · Pull Request #4238 · ocaml/dune · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add tests of dependency on an alias #4238

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

Closed
wants to merge 8 commits into from

Conversation

aalekseyev
Copy link
Collaborator
@aalekseyev aalekseyev commented Feb 16, 2021

When a user declares a dependency on an alias, the intention is to depend on the alias expansion.

Expansion is the idea we discussed in #2681 and it was generally agreed that the files mentioned in the deps field of an alias should contribute to its expansion.

It turns out this is completely broken in Dune today: alias expansions only ever include the alias stamp files which is not what we want.
This PR fixes one source of the issue, while adding a test for the remaining issues.

@ejgallego
Copy link
Collaborator

Related to #3415 ?

@aalekseyev
Copy link
Collaborator Author

@ejgallego, very much so!

@ejgallego
Copy link
Collaborator

I didn't check all the details, but I'm surprised that the alias stamp doesn't depend on the trace of the rule attached to it, which is in principle what is used to see if the alias needs rebuild, right?

Signed-off-by: Arseniy Alekseyev <aalekseyev@janestreet.com>
Signed-off-by: Arseniy Alekseyev <aalekseyev@janestreet.com>
Signed-off-by: Arseniy Alekseyev <aalekseyev@janestreet.com>
Signed-off-by: Arseniy Alekseyev <aalekseyev@janestreet.com>
Signed-off-by: Arseniy Alekseyev <aalekseyev@janestreet.com>
Signed-off-by: Arseniy Alekseyev <aalekseyev@janestreet.com>
Signed-off-by: Arseniy Alekseyev <aalekseyev@janestreet.com>
Signed-off-by: Arseniy Alekseyev <aalekseyev@janestreet.com>
@aalekseyev
Copy link
Collaborator Author

I'm closing this PR in favor of #4303

@aalekseyev aalekseyev closed this Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0