Comments (6)
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.
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.
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.
That last example gave me build errors - so going to use the previous one. Thanks!
from ocaml-fat.
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.
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)
- The CLI should use buffered I/O HOT 1
- Do not define the Fs_error exception inside the functor
- 'fat': adding a 8.3 filename, fails a sanity check HOT 1
- Error while compiling the dev version
- Fat tool: add an MBR, partition table? HOT 1
- listdir shows items that don't exist
- Writing to a new path leads to "Assertion failured"
- needs to be ported to mirage 2.3.0 types HOT 1
- Improve the `fat` command-line image
- Multiple errors with image files HOT 2
- can't create / connect to fat file on `tmpfs`
- `fat create` tries to open a file named "buffered:<...>" HOT 3
- README should include information on what works and what doesn't HOT 1
- Support exFAT filesystem HOT 1
- Blocks/Pages read/write HOT 2
- Compilation and Tests Failing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ocaml-fat.