yilin.wei10
2021-2-2 16:39:51

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?


yilin.wei10
2021-2-2 16:40:24

This is an example which I’m trying to follow https://github.com/rmculpepper/asn1


samth
2021-2-2 16:42:22

You want to install the two sub-directories as two separate packages


samth
2021-2-2 16:42:50

you ended up installing one package named otp which has subdirectories otp and otp-lib


yilin.wei10
2021-2-2 16:43:16

Ah, so --auto isn’t the way to install it?


samth
2021-2-2 16:43:31

--auto is fine


sorawee
2021-2-2 16:44:07

cd opt/opt; raco pkg install


yilin.wei10
2021-2-2 16:44:16

But I would go into each subdir separately?


samth
2021-2-2 16:44:34

that won’t installl opt-lib; you’ll want to do something like raco pkg install opt/ opt-lib/


yilin.wei10
2021-2-2 16:44:49

What does the package server do?


yilin.wei10
2021-2-2 16:44:56

I mean the package index


sorawee
2021-2-2 16:44:59

But realistically, opt probably should have opt-lib as a dependency


sorawee
2021-2-2 16:45:14

In that case, installing opt would also install opt-lib from users’ side


sorawee
2021-2-2 16:45:19

Not for development though


samth
2021-2-2 16:45:23

right, you want that but it won’t work in the CI


yilin.wei10
2021-2-2 16:45:23

(define deps '("base" "crypto-lib" "otp-lib")) (define implies '("otp-lib"))


yilin.wei10
2021-2-2 16:45:42

Is that not what this is doing?


samth
2021-2-2 16:45:58

for the pkg server, see the Source specified here: https://pkgs.racket-lang.org/package/asn1-doc


sorawee
2021-2-2 16:46:22

Yeah, my comment was probably not helpful and caused further confusion. Sorry about that.


sorawee
2021-2-2 16:46:35

I was trying to say that for your users, installing one would be enough.


yilin.wei10
2021-2-2 16:47:34

Gotcha; because it will refer to the other one through the package server?


samth
2021-2-2 16:47:42

yes


samth
2021-2-2 16:47:55

(that’s what @sorawee meant)


yilin.wei10
2021-2-2 16:49:15

Cool, I think I understand a little more now.


biogoog
2021-2-3 07:46:54

@biogoog has joined the channel