Skip to content

Example constraint to restrict workspaces from depending on different version of a package #2693

Answered by arcanis
wdfinch asked this question in Q&A
Discussion options

You must be logged in to vote

Didn't try it, but it should be something like this:

gen_enforced_dependency(WorkspaceCwd, 'react', '17.0.2', DependencyType) :-
  workspace_has_dependency(WorkspaceCwd, 'react', _, DependencyType).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@wdfinch
Comment options

@wdfinch
Comment options

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