-
Notifications
You must be signed in to change notification settings - Fork 3
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
Combining meta2json.py and rules.py into dromedary.py #2
Comments
I'll have a look at the PR, thank you !
|
Summary: i convinced myself that creating a link to the ocaml standard library directory as extracted from `ocamlopt.opt -config` was necessary and that we can't just assume `$OPAM_SWITCH/lib/ocaml` but have failed to prove that to myself today. together with ocaml-scripts issue [#2](facebook/ocaml-scripts#2) and similar past questions from vsiles i'm motivated to attempt to remove it so that we create but one link into .opam. Differential Revision: D50082445
Summary: i convinced myself that creating a link to the ocaml standard library directory as extracted from `ocamlopt.opt -config` was necessary and that we can't just assume `$OPAM_SWITCH/lib/ocaml` but have failed to prove that to myself today. together with ocaml-scripts issue [#2](facebook/ocaml-scripts#2) and similar past questions from vsiles i'm motivated to attempt to remove it so that we create but one link into .opam. Differential Revision: D50082445
Summary: i convinced myself that creating a link to the ocaml standard library directory as extracted from `ocamlopt.opt -config` was necessary and that we can't just assume `$OPAM_SWITCH/lib/ocaml` but have failed to prove that to myself today. together with ocaml-scripts issue [#2](facebook/ocaml-scripts#2) and similar past questions from vsiles i'm motivated to attempt to remove it so that we create but one link into .opam. Differential Revision: D50082445
it appears we can always set it to ROOT/lib/ocaml sas suggested by @Release-Candidate. i have pushed a change internally corresponding to facebook/buck2#442 that will soon make it's way into the facebook/buck2 repo that eliminates the |
Summary: Pull Request resolved: #442 i convinced myself that creating a link to the ocaml standard library directory as extracted from `ocamlopt.opt -config` was necessary and that we can't just assume `$OPAM_SWITCH/lib/ocaml` but have failed to prove that to myself today. together with ocaml-scripts issue [#2](facebook/ocaml-scripts#2) and similar past questions from vsiles i'm motivated to attempt to remove it so that we create but one link into .opam. Reviewed By: vsiles Differential Revision: D50082445 fbshipit-source-id: e46f2515c8c436cc5291550f6453f200defe0521
Thanks, great, one command line switch less. A question: what is this command_alias(
name = "ocamldebug-exe",
exe = ":ocamldebug",
resources = [
":ocamlrun",
":ocamldebug",
"_opam/lib/ocaml",
], This is the relevant source line: https://github.com/facebook/ocaml-scripts/blob/main/rules.py#L396 I get an error when trying to use that in the
|
I'm not the expert here, @shayne-fletcher do you remember ? |
The path is So, if Which means that the check for a directory does not treat a symlink to a directory as a directory, but as a file :). You might want to look into this, as that may cause real problems elsewhere. Well, actually not a symlink to a directory, but a relative path to a directory that starts with a symlink?! |
That does not matter for |
For future reference, see most of the discussion happening in #1 |
You're welcome, glad I could help. I've just started working on the config file to generate an Opam switch and install packages. |
Hi,
I've just combined these two scripts into a single one and before continuing and adding the generation of a opam switch I do have some questions regarding the use of these two scripts:
standard_library
in the generatedBUCK
file: is this something that is needed by you and I should provide a command line switch for it, or can I always set it toROOT/lib/ocaml
See #1
The text was updated successfully, but these errors were encountered: