I clearly don’t know what I’m doing. I’m trying to mimic some of the project structures I see in other projects (separate out lib and docs and a catch-all one), but I’m getting build errors. Here’s the changes - https://github.com/yilinwei/otp/pull/1. Why is the dependency not getting picked up?
This is an example which I’m trying to follow https://github.com/rmculpepper/asn1
You want to install the two sub-directories as two separate packages
you ended up installing one package named otp
which has subdirectories otp
and otp-lib
Ah, so --auto
isn’t the way to install it?
--auto
is fine
cd opt/opt; raco pkg install
But I would go into each subdir separately?
that won’t installl opt-lib; you’ll want to do something like raco pkg install opt/ opt-lib/
What does the package server do?
I mean the package index
But realistically, opt
probably should have opt-lib
as a dependency
In that case, installing opt
would also install opt-lib
from users’ side
Not for development though
right, you want that but it won’t work in the CI
(define deps '("base" "crypto-lib" "otp-lib"))
(define implies '("otp-lib"))
Is that not what this is doing?
for the pkg server, see the Source specified here: https://pkgs.racket-lang.org/package/asn1-doc
Yeah, my comment was probably not helpful and caused further confusion. Sorry about that.
I was trying to say that for your users, installing one would be enough.
Gotcha; because it will refer to the other one through the package server?
yes
(that’s what @sorawee meant)
Cool, I think I understand a little more now.
@biogoog has joined the channel