Add a package for go-xerrors (golang.org/x/xerrors).
Go 1.13 contains new functions in the errors package for wrapping error values. This package contains compatibility code to provide equivalent APIs for older Go versions too.
This commit is contained in:
parent
7a8d2a149f
commit
5f054be77b
6 changed files with 70 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.2969 2020/01/01 05:03:44 pho Exp $
|
||||
# $NetBSD: Makefile,v 1.2970 2020/01/01 17:42:11 bsiegert Exp $
|
||||
#
|
||||
|
||||
COMMENT= Development utilities
|
||||
|
@ -440,6 +440,7 @@ SUBDIR+= go-thrift
|
|||
SUBDIR+= go-tools
|
||||
SUBDIR+= go-try
|
||||
SUBDIR+= go-viper
|
||||
SUBDIR+= go-xerrors
|
||||
SUBDIR+= go-yaml
|
||||
SUBDIR+= gob2
|
||||
SUBDIR+= gobject-introspection
|
||||
|
|
3
devel/go-xerrors/DESCR
Normal file
3
devel/go-xerrors/DESCR
Normal file
|
@ -0,0 +1,3 @@
|
|||
Go 1.13 contains new functions in the errors package for wrapping error
|
||||
values. This package contains compatibility code to provide equivalent
|
||||
APIs for older Go versions too.
|
19
devel/go-xerrors/Makefile
Normal file
19
devel/go-xerrors/Makefile
Normal file
|
@ -0,0 +1,19 @@
|
|||
# $NetBSD: Makefile,v 1.1 2020/01/01 17:42:12 bsiegert Exp $
|
||||
#
|
||||
|
||||
DISTNAME= go-xerrors-20190719
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= ${MASTER_SITE_GITHUB:=golang/}
|
||||
GITHUB_PROJECT= xerrors
|
||||
GITHUB_TAG= 9bdfabe685
|
||||
|
||||
MAINTAINER= pkgsrc-users@NetBSD.org
|
||||
HOMEPAGE= https://golang.org/x/xerrors
|
||||
COMMENT= Transition package for Go 1.13 error values
|
||||
LICENSE= modified-bsd
|
||||
|
||||
GO_SRCPATH= golang.org/x/xerrors
|
||||
GO_DIST_BASE= ${GITHUB_PROJECT}-${GITHUB_TAG}*
|
||||
|
||||
.include "../../lang/go/go-package.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
25
devel/go-xerrors/PLIST
Normal file
25
devel/go-xerrors/PLIST
Normal file
|
@ -0,0 +1,25 @@
|
|||
@comment $NetBSD: PLIST,v 1.1 2020/01/01 17:42:12 bsiegert Exp $
|
||||
gopkg/pkg/${GO_PLATFORM}/golang.org/x/xerrors.a
|
||||
gopkg/pkg/${GO_PLATFORM}/golang.org/x/xerrors/internal.a
|
||||
gopkg/src/golang.org/x/xerrors/LICENSE
|
||||
gopkg/src/golang.org/x/xerrors/PATENTS
|
||||
gopkg/src/golang.org/x/xerrors/README
|
||||
gopkg/src/golang.org/x/xerrors/adaptor.go
|
||||
gopkg/src/golang.org/x/xerrors/codereview.cfg
|
||||
gopkg/src/golang.org/x/xerrors/doc.go
|
||||
gopkg/src/golang.org/x/xerrors/errors.go
|
||||
gopkg/src/golang.org/x/xerrors/errors_test.go
|
||||
gopkg/src/golang.org/x/xerrors/example_As_test.go
|
||||
gopkg/src/golang.org/x/xerrors/example_FormatError_test.go
|
||||
gopkg/src/golang.org/x/xerrors/example_test.go
|
||||
gopkg/src/golang.org/x/xerrors/fmt.go
|
||||
gopkg/src/golang.org/x/xerrors/fmt_test.go
|
||||
gopkg/src/golang.org/x/xerrors/fmt_unexported_test.go
|
||||
gopkg/src/golang.org/x/xerrors/format.go
|
||||
gopkg/src/golang.org/x/xerrors/frame.go
|
||||
gopkg/src/golang.org/x/xerrors/go.mod
|
||||
gopkg/src/golang.org/x/xerrors/internal/internal.go
|
||||
gopkg/src/golang.org/x/xerrors/stack_test.go
|
||||
gopkg/src/golang.org/x/xerrors/wrap.go
|
||||
gopkg/src/golang.org/x/xerrors/wrap_113_test.go
|
||||
gopkg/src/golang.org/x/xerrors/wrap_test.go
|
15
devel/go-xerrors/buildlink3.mk
Normal file
15
devel/go-xerrors/buildlink3.mk
Normal file
|
@ -0,0 +1,15 @@
|
|||
# $NetBSD: buildlink3.mk,v 1.1 2020/01/01 17:42:12 bsiegert Exp $
|
||||
|
||||
BUILDLINK_TREE+= go-xerrors
|
||||
|
||||
.if !defined(GO_XERRORS_BUILDLINK3_MK)
|
||||
GO_XERRORS_BUILDLINK3_MK:=
|
||||
|
||||
BUILDLINK_CONTENTS_FILTER.go-xerrors= ${EGREP} gopkg/
|
||||
BUILDLINK_DEPMETHOD.go-xerrors?= build
|
||||
|
||||
BUILDLINK_API_DEPENDS.go-xerrors+= go-xerrors>=20190719
|
||||
BUILDLINK_PKGSRCDIR.go-xerrors?= ../../wip/go-xerrors
|
||||
.endif # GO_XERRORS_BUILDLINK3_MK
|
||||
|
||||
BUILDLINK_TREE+= -go-xerrors
|
6
devel/go-xerrors/distinfo
Normal file
6
devel/go-xerrors/distinfo
Normal file
|
@ -0,0 +1,6 @@
|
|||
$NetBSD: distinfo,v 1.1 2020/01/01 17:42:12 bsiegert Exp $
|
||||
|
||||
SHA1 (go-xerrors-20190719-9bdfabe685.tar.gz) = 1fc793c05d63019a565f75d9ca8c1c40f70ec987
|
||||
RMD160 (go-xerrors-20190719-9bdfabe685.tar.gz) = e3aa1982f3557027fe0b99cbdbdec1d50480a5c4
|
||||
SHA512 (go-xerrors-20190719-9bdfabe685.tar.gz) = 9f6f524feda6c6fcf56c0a2347362a245d7a6f7f430826d2ccf56c521f6db6c913d8788f7894866dd6667c9ed65b5a6c35176e5952f8687f71cd7c7b179083f9
|
||||
Size (go-xerrors-20190719-9bdfabe685.tar.gz) = 13661 bytes
|
Loading…
Reference in a new issue