Coder Social home page Coder Social logo

Comments (7)

danielloader avatar danielloader commented on July 2, 2024 1

Excited for v2 release now, thanks.

from render-md-mermaid.

nielsvaneck avatar nielsvaneck commented on July 2, 2024

not sure what your reproduction steps are, but have you tried removing the example images or changing the graph definitions?

from render-md-mermaid.

danielloader avatar danielloader commented on July 2, 2024

Think I can shine some light on this @lswank

$ docker run -it -v /path/to/diagrams:/data --entrypoint bash minlag/mermaid-cli
mermaidcli@64bbea1ff322:/$ find . -name mmdc
./home/mermaidcli/node_modules/.bin/mmdc
./home/mermaidcli/.cache/yarn/v6/.tmp/0be863b9afb222f53eb609791cf5e2c4/.bin/mmdc
./home/mermaidcli/.cache/yarn/v6/npm-@mermaid-js-mermaid-cli-8.11.0-bbcd91e448f003155975601a65885ed153898298/node_modules/@mermaid-js/mermaid-cli/.bin/mmdc
mermaidcli@64bbea1ff322:/$ stat /usr/local/bin/mmdc
stat: cannot stat '/usr/local/bin/mmdc': No such file or directory

https://github.com/mermaid-js/mermaid-cli/blob/master/Dockerfile#L15

image

Seems to be passing as successful in the script despite it failing to find a binary inside the docker image being used, I suspect the path to a mmdc entrypoint changed in minlag/mermaid-cli at some point, and this action is using the latest tag.

EDIT: here's the change made:
mermaid-js/mermaid-cli@8888b19#diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557L13

Though interestingly May26th and the original issue is from Feb, but here we are.

from render-md-mermaid.

danielloader avatar danielloader commented on July 2, 2024

#2 Put in a pull request to catch these issues in future, would have bailed with non zero exit code and failed the pipeline if it couldn't find mmdc

from render-md-mermaid.

nielsvaneck avatar nielsvaneck commented on July 2, 2024

Thank you, @danielloader !

from render-md-mermaid.

danielloader avatar danielloader commented on July 2, 2024

Just need to change the binary location in the bash script and we should be set.

from render-md-mermaid.

nielsvaneck avatar nielsvaneck commented on July 2, 2024

from render-md-mermaid.

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.