petrol icon indicating copy to clipboard operation
petrol copied to clipboard

Update opam package

Open sam-huckaby opened this issue 2 years ago • 3 comments

Hello! I'm incredibly new to OCaml so if anything I've said here is completely wrong I apologize in advance.

I recently started using Petrol and was having trouble with the join alias not being applied in my project, even though it appeared that I was on the latest version (1.2.0 according to opam). I looked through the tags and it appears that there is newer versions (up to 1.2.3?) which do not show up in opam.

So I cloned and built the repo by hand to see if that fixed things and it does. It seems as though the version of Petrol being served by opam is out of date.

You may already know this, so feel free to close this issue if that's the case, I just wanted to bring it to your attention if not.

sam-huckaby avatar Jul 29 '23 19:07 sam-huckaby

Hey. In the meantime it worked for me to pin the version of petrol to this repository like this:

opam-version: "2.0"

depends: [
  "ocaml" {>= "4.08.0"}
  "caqti-driver-sqlite3" {>= "1.7.0"}
  "dream" {>= "1.0.0~alpha5"}
  "dream-html" {>= "2.0.0"}
  "petrol" {>= "1.2.0"}
  "dune" {>= "2.0.0"}
]

pin-depends: [
  ["petrol.dev" "git+https://github.com/Gopiandcode/petrol.git"]
]

Then running the following commands to upgrade to the pinned version:

opam install . --deps-only
opam upgrade petrol

Not sure if all those steps are required or this is the ideal solution but it seems to work.

joshdcuneo avatar Dec 21 '23 05:12 joshdcuneo

I'd also love to see this updated on opam. Seems the last update was over a year ago. Type.custom would be pretty useful!

jake-miles avatar Oct 15 '24 14:10 jake-miles

Would either of the participants in this thread like to be a maintainer? I haven't been maintaining this package actively recently, but if there is interest I'm happy to hand over the reins~

kiranandcode avatar Oct 31 '24 00:10 kiranandcode