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 Universal Archive Reader to parse DARs and DALFs #359

Merged
merged 1 commit into from
Apr 10, 2019

Conversation

leo-da
Copy link
Contributor

@leo-da leo-da commented Apr 10, 2019

Cleaned up DAR Reader errors.

See: #109

Pull Request Checklist

@leo-da leo-da added component/daml-lf DAML-LF component/scala-ecosystem Scala development experience labels Apr 10, 2019
@leo-da leo-da self-assigned this Apr 10, 2019
else Failure(UnsupportedFileExtension(f))

sealed abstract class SupportedFileType(fileExtension: String) extends Serializable with Product {
def matchesFileExtension(f: File): Boolean = f.getName.endsWith(fileExtension)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this check be case-insensitive?

Copy link
Contributor Author

@leo-da leo-da Apr 10, 2019

Choose a reason for hiding this comment

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

it can be... I actually thought about this initially. But I believe our tools create DARs and DALFs with *.dar and *.dalf extensions and that is how it is supposed to be. But if you think the case is important, it is easy to fix.

@leo-da leo-da merged commit a8e32f6 into master Apr 10, 2019
@leo-da leo-da deleted the leo-109-universal-archive-reader branch April 10, 2019 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/daml-lf DAML-LF component/scala-ecosystem Scala development experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants