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

Add support for DUNE_VCS_{DESCRIBE,COMMIT_ID,FILES} #11485

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

glondu
Copy link
Contributor

@glondu glondu commented Feb 17, 2025

This commit adds the possibility to customize dune subst behaviour with environment variables, instead of querying the VCS.

The need arose in Debian, where unsubstituted sources are preferred as basis for packaging but break substitution when those sources are not used from upstream VCS. For more background, see the discussion starting at [1].

[1] https://lists.debian.org/debian-ocaml-maint/2025/02/msg00106.html

This is work in progress that I started a few hours before @SnarkBoojum opened #11484, but it is a solution to the problem exposed there.

This commit adds the possibility to customize `dune subst` behaviour
with environment variables, instead of querying the VCS.

The need arose in Debian, where unsubstituted sources are preferred as
basis for packaging but break substitution when those sources are not
used from upstream VCS. For more background, see the discussion
starting at [1].

[1] https://lists.debian.org/debian-ocaml-maint/2025/02/msg00106.html

Signed-off-by: Stephane Glondu <[email protected]>
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.

1 participant