Git Product home page Git Product logo

Comments (7)

bgamari avatar bgamari commented on August 16, 2024 1

I have merged the MR. Thanks everyone!

from dhall-gitlab-ci.

mx00s avatar mx00s commented on August 16, 2024

Odd. It worked for me.

$ git clone https://github.com/bgamari/dhall-gitlab-ci.git
$ cd dhall-gitlab-ci
$ dhall <<< ./examples/single-job.dhall
''
"generated-job":
  "allow_failure": false
  "image":
    "entrypoint":
      - " "
    "name": "alpine:latest"
  "script":
    - "echo 'Hello World'"
  "stage": "build"
  "variables": {}
"variables":
  "GIT_SUBMODULE_STRATEGY": "normal"
''

I tested using a somewhat old version:

$ dhall --version
1.39.0

from dhall-gitlab-ci.

bobdoah avatar bobdoah commented on August 16, 2024

Yeah, I'm using the latest:

% dhall --version
1.41.1

I can't see any obvious reason in the changelog why this would have broken: https://hackage.haskell.org/package/dhall-1.41.1/changelog

from dhall-gitlab-ci.

kenranunderscore avatar kenranunderscore commented on August 16, 2024

For the record, same problem here when upgrading to dhall in version 1.40.2. For now I'm using @bobdoah's PR directly, otherwise the pipeline won't build.

from dhall-gitlab-ci.

dhamidi avatar dhamidi commented on August 16, 2024

It turned out that there is another issue with the latest dhall version: https://discourse.dhall-lang.org/t/first-steps-failed-when-trying-dhall-for-gitlab-ci/602/3

The behavior of import has changed, so the fallback to use an include without the integrity checksum doesn't work anymore.

from dhall-gitlab-ci.

jackmac92 avatar jackmac92 commented on August 16, 2024

I was hoping to get a bit more familiar with dhall by using it for gitlab-ci, any recs on a temporary workaround?

Could I somehow get that version of the Prelude cached on my machine? Or fork and deal with fixing the sha check w/in the code of this repo?

from dhall-gitlab-ci.

bobdoah avatar bobdoah commented on August 16, 2024

You can use the PR (https://raw.githubusercontent.com/bgamari/dhall-gitlab-ci/9cde297ccee35a473c9ef0944348b70367a899ac/package.dhall), or my fork: https://raw.githubusercontent.com/bobdoah/dhall-gitlab-ci/master/package.dhall

from dhall-gitlab-ci.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.