Skip to content

fix(pkg): remove duplication in portable lock directories#13637

Closed
Alizter wants to merge 1 commit into
ocaml:mainfrom
Alizter:push-zqzyykkmvxzo
Closed

fix(pkg): remove duplication in portable lock directories#13637
Alizter wants to merge 1 commit into
ocaml:mainfrom
Alizter:push-zqzyykkmvxzo

Conversation

@Alizter
Copy link
Copy Markdown
Collaborator

@Alizter Alizter commented Feb 16, 2026

Rather than duplicating the build logic in portable lock directories for each platform, we keep around the when-conditional so that we have a more compact lock file.

Rather than duplicating the build logic in portable lock directories for
each platform, we keep around the when-conditional so that we have a
more compact lock file.

Signed-off-by: Ali Caglayan <alizter@gmail.com>
@Alizter Alizter closed this Feb 18, 2026
Copy link
Copy Markdown
Member

@rgrinberg rgrinberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, this doesn't work well when the opam file includes values for the platform specific variables that should be eliminated. The test does not demonstrate such variables at the moment.

@Alizter
Copy link
Copy Markdown
Collaborator Author

Alizter commented Feb 18, 2026

Closing this for now. I will make a better version that enumerates the platforms and removes redundant expressions. (when %{os} = macos) is always the empty slang when the platform is never in the set of platforms.

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