Coder Social home page Coder Social logo

Comments (6)

yomimono avatar yomimono commented on August 27, 2024

Sorry for the delayed response, @uvgroovy . The current master of fat-filesystem is built against the upcoming MirageOS 3 API, and won't build without the accompanying set of tools in that universe. Until MirageOS 3 is available in the public opam repository, you'll need to amend your RUN statement to get the right set of dependencies for the current master:

RUN opam init -y && cd /tmp/ && \
    opam remote add mirage-dev https://github.com/mirage/mirage-dev.git && \
    opam update && \
    git clone https://github.com/mirage/ocaml-fat && \
    cd /tmp/ocaml-fat && \
    opam pin add ocaml-fat . -n -y && \
    opam install ocaml-fat --verbose

from ocaml-fat.

yuval-k avatar yuval-k commented on August 27, 2024

That seems to work. Thanks!

Is there any way to pin the specific version of mirage-dev in "opam remote add mirage-dev https://github.com/mirage/mirage-dev.git"? My goal is to guarantee that the container build will not fail in the future.

from ocaml-fat.

yomimono avatar yomimono commented on August 27, 2024

Unfortunately mirage-dev itself is pointing at the current master of a whole bunch of packages, so pinning a specific commit won't be too helpful. If you can use the last released version of the package (the one you get via opam install fat-filesystem), the better thing to do would be this, which will get you the source for the latest released version of fat-filesystem:

RUN opam init -y && cd /tmp/ && \
   opam source fat-filesystem --dir ocaml-fat && \
    cd /tmp/ocaml-fat && \
    opam pin add ocaml-fat . -n -y && \
    opam install ocaml-fat --verbose

from ocaml-fat.

yuval-k avatar yuval-k commented on August 27, 2024

That last example gave me build errors - so going to use the previous one. Thanks!

from ocaml-fat.

adam-hanna avatar adam-hanna commented on August 27, 2024

Sorry to bring this thread back from the dead.

@yomimono I'm running the command as you've typed it:

RUN opam init -y && cd /tmp/ && \
    opam remote add mirage-dev https://github.com/mirage/mirage-dev.git && \
    opam update && \
    git clone https://github.com/mirage/ocaml-fat && \
    cd /tmp/ocaml-fat && \
    opam pin add ocaml-fat . -n -y && \
    opam install ocaml-fat --verbose

I've also tried your other suggestion:

RUN opam init -y && cd /tmp/ && \
   opam source fat-filesystem --dir ocaml-fat && \
   cd /tmp/ocaml-fat && \
   opam pin add ocaml-fat . -n -y && \
   opam install ocaml-fat --verbose

But am getting the following error:

[NOTE] No package definition found for ocaml-fat.~dev: please complete the template
Error opening terminal: unknown.
[ERROR] Empty file or editor error, aborting.
[ERROR] No valid package definition found

I don't quite understand the error about a missing package def for ocaml-fat.~dev.

Thanks for any help.

from ocaml-fat.

hannesm avatar hannesm commented on August 27, 2024

dear @adam-hanna, the opam package name of this repository is fat-filesystem. it used to use other names (e.g. ocaml-fat). there's no need to add the mirage-dev remote. you should just be able to run opam install fat-filesystem (and depend in your library on fat-filesystem).

from ocaml-fat.

Related Issues (17)

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.