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 metadata checks to upgraded dar #19978

Open
wants to merge 5 commits into
base: main-2.x
Choose a base branch
from

Conversation

samuel-williams-da
Copy link
Contributor

@samuel-williams-da samuel-williams-da commented Sep 20, 2024

Ghcide PR
I've also verified that the errors show on the daml.yaml file in VSCode, and that it plays nicely with Multi-ide's reporting to daml.yaml when the IDE can't start

Copy link
Contributor Author

@samuel-williams-da samuel-williams-da left a comment

Choose a reason for hiding this comment

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

Since my ghcide changed the default behaviour of define, we can either rely on our tests to ensure this doesn't affect anything, or I could run all tests with a version of ghcide that errors if the diag file doesn't match the rule file, to be certain.
Unsure if this is worthwhile

packageVersionLt = (<) `on` fmap (read @Int) . splitWhen (=='.') . T.unpack . LF.unPackageVersion

-- We assume major will always be 1 (or at least the same), since Version.supportedOutputVersions does not contain any 2. versions
-- TODO: Is this acceptable?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Double check this

@samuel-williams-da samuel-williams-da marked this pull request as ready for review September 20, 2024 12:49
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