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

Ignore trailing newlines when doing 'test and set' on reference files #611

Merged
merged 1 commit into from
Nov 21, 2017

Conversation

samoht
Copy link
Member

@samoht samoht commented Sep 28, 2017

This is because git commit might add these. Fix #610

/cc @djs55

@samoht
Copy link
Member Author

samoht commented Sep 28, 2017

The proper fix should probably be to modify https://github.com/mirage/ocaml-git/blob/master/src/git/fs.ml#L630-L638, but this patch should be fine too.

@djs55
Copy link
Collaborator

djs55 commented Sep 28, 2017

@samoht I've got some CI fixes on #612 for CircleCI and appveyor -- feel free to grab any you don't already have!

@djs55
Copy link
Collaborator

djs55 commented Sep 28, 2017

I think you might need

  • xcode.8.3: 30c52ad
  • remove one of the references to version.ml: ba1f320
  • fix opam-depext no such file or directory: b6b6aa1
  • fix "cannot find topfind" 52fa58c

(the opam config exec -- ones are a bit weird. There was a bug in OCaml's standard library recently to do with environment variables wasn't there?)

I think these should fix CircleCI and appveyor

@samoht
Copy link
Member Author

samoht commented Sep 28, 2017

@djs55 thanks, I have rebased on top on your branch

Dockerfile.ci Outdated
@@ -1,8 +1,7 @@
FROM ocaml/opam-dev@sha256:1dd4440b3e5f182f705cb5a74f9d4e860c2842b45ed72c199de89a894d13f522
#FROM ocaml/opam-dev:alpine-3.5_ocaml-4.04.0
FROM ocaml/opam:alpine-3.5_ocaml-4.04.0
Copy link
Contributor

Choose a reason for hiding this comment

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

Why the move back to opam 1?

Copy link
Member Author

@samoht samoht Sep 29, 2017

Choose a reason for hiding this comment

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

The CI changes are being now worked on #612 where I reverted that change. The plan is to first merge #612 and then rebase this PR on master with just the "newline" commit on it.

This is because `git commit` might add these. Fix moby#610

Signed-off-by: Thomas Gazagnaire <thomas@gazagnaire.org>
@samoht
Copy link
Member Author

samoht commented Nov 21, 2017

Rebased on top of master.

@samoht samoht merged commit c0e0370 into moby:master Nov 21, 2017
@samoht samoht deleted the newlines branch November 21, 2017 09:46
samoht added a commit to samoht/opam-repository that referenced this pull request Apr 13, 2018
Changes:

- git: make `Git.FS.test_and_set_references` work better with packed
  references (mirage/ocaml-git#291, @samoht. Fixes moby/datakit#633)
- git-unix: ignore trailing newlines when doing 'test and set' on
  reference files (backport of moby/datakit#611, @samoht. Fixes moby/datakit#610)
- git-mirage: fix linking of tests (@samoht)
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.

3 participants