knqyf263 / pet

Simple command-line snippet manager
MIT License
4.54k stars 230 forks source link

Reliance on deprecated `dep` tool means `pet` does not compile on OpenBSD #176

Closed elmarsto closed 9 months ago

elmarsto commented 3 years ago

Expected behaviour:

Actual behaviour:

image

qbit commented 3 years ago

dep can be installed on OpenBSD via pkg_add - OpenBSD 6.9 has dep at version 0.5.0 which should work. You will need to remove the dep dependency from the build target in the Makefile.

Alternatively, portgen go github.com/knqyf263/pet can be used to build a package that can be installed with pkg_add.

I was able to build it successfully:

qbit@tal[0]:/usr/ports/mystuff/go/pet got:(master)$ make package
`/build/pobj/pet-0.3.6/fake-amd64/.fake_done' is up to date.
===>  Building package for pet-0.3.6
Create /usr/ports/packages/amd64/all/pet-0.3.6.tgz
Creating package pet-0.3.6
qbit@tal[0]:/usr/ports/mystuff/go/pet got:(master)$ 

(you will need the ports tree in place to run portgen which lives in /usr/ports/infrastructure/bin/portgen)

Anyway - I can't speak to the pet's use of dep - I am just offering this info in the hopes it helps you get up and running sooner :D

RamiAwar commented 9 months ago

Should be resolved now! CAn't see this anywhere in the new dependency graph