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

Fix a bug in opam file transformation for distrib #168

Merged
merged 3 commits into from
Sep 24, 2019

Conversation

NathanReb
Copy link
Contributor

Fixes #163

The code that adds the version to the opam file before building the distrib tarball was a bit lax and in some cases (like in #163) it would filter out lines that weren't actually the version field line.

This PR adds a few tests and strengthen that part of the code a bit.

The proper fix would probably be to use opam's libary for that but I think a quick fix will do for now. We won't need to do this anymore when integrating into dune!

@NathanReb NathanReb requested a review from samoht September 23, 2019 17:46
@NathanReb NathanReb force-pushed the fix-weird-opam-truncation branch from ebcf268 to ea2a0fe Compare September 23, 2019 17:48
@samoht samoht merged commit 4c3aa69 into tarides:master Sep 24, 2019
@samoht
Copy link
Contributor

samoht commented Sep 24, 2019

Looks good, thanks!

NathanReb added a commit to NathanReb/opam-repository that referenced this pull request Sep 30, 2019
CHANGES:

### Fixed

- Fix a bug where `opam submit` would fail if the opam files had no description
  (tarides/dune-release#165, @NathanReb)
- Fix a bug where opam files could be inproperly tempered with while building
  the distribution tarball (tarides/dune-release#168, @NathanReb)
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.

dune-release distrib odd lint error
2 participants