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

Bundle packages with SDK releases #3056

Merged
merged 6 commits into from
Sep 30, 2019
Merged

Bundle packages with SDK releases #3056

merged 6 commits into from
Sep 30, 2019

Conversation

aherrmann-da
Copy link
Contributor

Closes #2979

  • Packages can be bundled with the SDK in $DAML_SDK/daml-libs.
  • Bundled packages can be referenced in daml.yaml's dependencies by package name without .dar extension.
  • Bundle the daml-trigger package. (Package will change in the future)
  • Add to daml-assistant integration tests.
  • Update changelog.

Pull Request Checklist

  • Read and understand the contribution guidelines
  • Include appropriate tests
  • Set a descriptive title and thorough description
  • Add a reference to the issue this PR will solve, if appropriate
  • Add a line to the release notes, if appropriate
  • Normal production system change, include purpose of change in description

NOTE: CI is not automatically run on non-members pull-requests for security
reasons. The reviewer will have to comment with /AzurePipelines run to
trigger the build.

Copy link
Contributor

@cocreature cocreature left a comment

Choose a reason for hiding this comment

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

Nice work, thank you!

mbSdkPath <- handleIO (\_ -> pure Nothing) $ Just <$> getSdkPath
let isSdkPackage fp = takeExtension fp /= ".dar"
handleSdkPackages :: [FilePath] -> IO [FilePath]
handleSdkPackages = case mbSdkPath of
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be easier to read if you do the case split inside of expand.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed that's clearer, I've changed the code.

I figured lifting the case match outside was probably more efficient. But, that's likely premature optimization and not really necessary.

@mergify mergify bot merged commit 98bb580 into master Sep 30, 2019
@mergify mergify bot deleted the da-triggers-sdk branch September 30, 2019 09:15
@cocreature cocreature added this to the DAML Triggers milestone Oct 9, 2019
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.

Proposal: Depending on DAR packages shipped with the SDK
3 participants