-
Notifications
You must be signed in to change notification settings - Fork 211
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
Move HsYAML-based code to dhall-yaml #1514
Conversation
@patrickmn I'm getting a test failure with the
|
Ok so it seems the test broke after https://github.com/dhall-lang/dhall-haskell/pull/1474/files which itself addressed that, in fact, values like I will address that in aeson-yaml by quoting strings that only contain numbers or |
So you're saying our test is wrong!? If so, we should rather change the expected test output and fix the HsYAML-based code, right?! |
Ah, no. I mixed up expected and actual test output. Sorry! :/ |
Right -- the behavior of the two libraries as configured was just the same, but still wrong. Dates do have to be quoted to avoid conversion to YAML dates. Will push a new aeson-yaml momentarily. |
Ok, try with aeson-yaml 1.0.4.0 |
Thanks for the quick fix! Unfortunately I'm seeing a different test failure now:
|
Uff. The problem is I single-quote "safe" strings and double-quote unsafe, and number/dates are part of the unsafes. Unfortunately I'm quite busy today -- will need a little more time to address this. |
That actually seems like a reasonable scheme to me – we could consider adopting that for the |
- source .travis-functions.sh | ||
- tar -jcvf $(mk_release_name dhall) bin/dhall | ||
- tar -jcvf $(mk_release_name dhall-json) bin/dhall-to-json bin/dhall-to-yaml bin/json-to-dhall bin/yaml-to-dhall | ||
- tar -jcvf $(mk_release_name dhall-json) bin/dhall-to-json bin/dhall-to-yaml bin/json-to-dhall | ||
- tar -jcvf $(mk_release_name dhall-bash) bin/dhall-to-bash | ||
- tar -jcvf $(mk_release_name dhall-lsp-server) bin/dhall-lsp-server | ||
- tar -jcvf $(mk_release_name dhall-nix) bin/dhall-to-nix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand how we're installing the binaries for dhall-to-nix
, dhall-lsp-server
etc. I only see the --copy-bins
for dhall-json
so far. Does anyone know?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed Travis fails now with:
$ tar -jcvf $(mk_release_name dhall) bin/dhall
tar: bin/dhall: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
The command "tar -jcvf $(mk_release_name dhall) bin/dhall" exited with 1.
3.75s$ tar -jcvf $(mk_release_name dhall-json) bin/dhall-to-json bin/dhall-to-yaml bin/json-to-dhall
a bin/dhall-to-json
a bin/dhall-to-yaml
a bin/json-to-dhall
The command "tar -jcvf $(mk_release_name dhall-json) bin/dhall-to-json bin/dhall-to-yaml bin/json-to-dhall" exited with 0.
0.03s$ tar -jcvf $(mk_release_name dhall-bash) bin/dhall-to-bash
tar: bin/dhall-to-bash: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
The command "tar -jcvf $(mk_release_name dhall-bash) bin/dhall-to-bash" exited with 1.
0.03s$ tar -jcvf $(mk_release_name dhall-lsp-server) bin/dhall-lsp-server
tar: bin/dhall-lsp-server: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
The command "tar -jcvf $(mk_release_name dhall-lsp-server) bin/dhall-lsp-server" exited with 1.
0.03s$ tar -jcvf $(mk_release_name dhall-nix) bin/dhall-to-nix
tar: bin/dhall-to-nix: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
The command "tar -jcvf $(mk_release_name dhall-nix) bin/dhall-to-nix" exited with 1.
Could it be that we have distributed ancient cached binaries for OS X so far?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it was just 96e694d that restricted the binary build to dhall-json
.
I think we should maybe move |
There's a funny build failure on Travis that I can't reproduce on Linux:
I wonder whether that's related to the case-insensitivity of the file system or something like that?! EDIT: Seems like a long-standing Cabal issue: haskell/cabal#4739 (comment) |
That should also help with the build failure on OS X. I also want to go back to spelling |
CI still fails due to the test failure with |
* Shared code for the dhall-to-yaml[-ng] executables stays in dhall-json. * Shared tests are in dhall-yaml. Fixes #1435.
923003f
to
bbb1ca8
Compare
I have disabled the test for now so I can merge, but made an issue to track the problem: #1516. |
Fixes #1435.
Instead of creating helper packages for the shared code and tests, it seemed simpler to keep the shared code in dhall-json and move the shared tests to dhall-yaml.
TODO:
aeson-yaml