Package errors provides simple error handling primitives for Go.
Details
- portlint -a
- poudriere testport -j 11i386 -p portsdir -o devel/go-errors [1]
- poudriere testport -j 11amd64 -p portsdir -o devel/go-errors [2]
[1] http://62.210.142.226:8000/11i386-portsdir/latest/build.html
[2] http://62.210.142.226:8000/11amd64-portsdir/latest/build.html
Diff Detail
- Repository
- rP FreeBSD ports repository
- Lint
No Lint Coverage - Unit
No Test Coverage - Build Status
Buildable 6308 Build 6548: arc lint + arc unit
Event Timeline
devel/go-errors/Makefile | ||
---|---|---|
5 | This should be PORTNAME=errors / PKGNAMEPREFIX=go- so that you can remove th GH_PROJECT line afterwards. |
Please do not create ports/packages for Go libraries. It's better to add the lib as another distfile in ports that need it.
@swills I need it as build dependency for a port I will bring into the port tree. As It's a library, it's useful to have a separate ports/package for it like that it could be reused in case another port need it.
Also, there are already lot of go libraries in the ports tree (cf. pkg search -g 'go-*'), why you want to prevent me for adding this one ?
Because, like @bapt told you, it is not how the ports tree works wrt Go.
What ports do is add distfile for the libraries they need, put them in the right place, and let go build everything at once.
@mat It's another approach which do not use multiple distfiles and do not build required dependencies into ${WRKSRC} at once.
I think sharing the archive .a is a sane way to do it.
My approach works without multiples distfiles and use BUILD_DEPENDS to satisfy the go build dependencies.
Also, there are already other go packages included in the port tree...