rawlink icon indicating copy to clipboard operation
rawlink copied to clipboard

Add package for cli programs.

Open tmcgilchrist opened this issue 2 years ago • 3 comments

This project is failing to build in ocaml-ci.

It is caused by the bin/* programs requiring extra dependencies that are not present in any opam files. I've created a raw link-bin.opam package to cover these programs and pull in the required opam packages. The wording in the package is copied straight from rawlink.opam and possibly needs to be changed.

tmcgilchrist avatar Nov 23 '22 01:11 tmcgilchrist

Sorry for the absurd delay in answering this. The idea for those binaries were to not be shipped more like a debugging tool while I was developing, especially the test-arp one. I'm not sure I see much point in making them public, I'll play with actions tomorrow and see what to do.

haesbaert avatar Feb 27 '23 23:02 haesbaert

The opam supported options would be either:

  1. include them as test dependencies and use with-test to include any extra libraries that aren't required for the library.
  2. use this approach of having a raw-link-bin.opam package that you don't publish to opam.

I'm not aware of a third supported way to do this.

tmcgilchrist avatar Feb 28 '23 06:02 tmcgilchrist

The opam supported options would be either:

  1. include them as test dependencies and use with-test to include any extra libraries that aren't required for the library.
  2. use this approach of having a raw-link-bin.opam package that you don't publish to opam.

I'm not aware of a third supported way to do this.

hmmmm I think the different package might be a way to go, I'll see if I can get test_arp to work with with-test, now it doesn't really need an interface name, it just needs to be run as root.

haesbaert avatar Feb 28 '23 08:02 haesbaert