pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/go-errors Add go-errors package



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a7946518cf31
branches:  trunk
changeset: 366635:a7946518cf31
user:      gavan <gavan%pkgsrc.org@localhost>
date:      Thu Aug 17 01:23:10 2017 +0000

description:
Add go-errors package

diffstat:

 devel/go-errors/DESCR         |   9 +++++++++
 devel/go-errors/Makefile      |  20 ++++++++++++++++++++
 devel/go-errors/PLIST         |  11 +++++++++++
 devel/go-errors/buildlink3.mk |  17 +++++++++++++++++
 devel/go-errors/distinfo      |   6 ++++++
 5 files changed, 63 insertions(+), 0 deletions(-)

diffs (83 lines):

diff -r 141736cb7669 -r a7946518cf31 devel/go-errors/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-errors/DESCR     Thu Aug 17 01:23:10 2017 +0000
@@ -0,0 +1,9 @@
+Package errors provides simple error handling primitives.
+
+The traditional error handling idiom in Go is roughly akin to
+
+if err != nil {
+        return err
+}
+
+which applied recursively up the call stack results in error reports without context or debugging information. The errors package allows programmers to add context to the failure path in their code 
in a way that does not destroy the original value of the error.
diff -r 141736cb7669 -r a7946518cf31 devel/go-errors/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-errors/Makefile  Thu Aug 17 01:23:10 2017 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2017/08/17 01:23:10 gavan Exp $
+
+DISTNAME=      errors-0.6.0
+PKGNAME=       go-${DISTNAME}
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=pkg/}
+CATEGORIES=    devel
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+GITHUB_PROJECT= ${PKGBASE:S/^go-//}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/pkg/errors
+COMMENT=       Simple error handling primitives
+LICENSE=       2-clause-bsd
+
+GO_DIST_BASE=  ${DISTNAME}
+GO_SRCPATH=    github.com/pkg/errors
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
+
diff -r 141736cb7669 -r a7946518cf31 devel/go-errors/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-errors/PLIST     Thu Aug 17 01:23:10 2017 +0000
@@ -0,0 +1,11 @@
+@comment $NetBSD: PLIST,v 1.1 2017/08/17 01:23:10 gavan Exp $
+gopkg/pkg/${GO_PLATFORM}/github.com/pkg/errors.a
+gopkg/src/github.com/pkg/errors/LICENSE
+gopkg/src/github.com/pkg/errors/README.md
+gopkg/src/github.com/pkg/errors/appveyor.yml
+gopkg/src/github.com/pkg/errors/errors.go
+gopkg/src/github.com/pkg/errors/errors_test.go
+gopkg/src/github.com/pkg/errors/example_test.go
+gopkg/src/github.com/pkg/errors/stack.go
+gopkg/src/github.com/pkg/errors/stack_test.go
+@pkgdir bin
diff -r 141736cb7669 -r a7946518cf31 devel/go-errors/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-errors/buildlink3.mk     Thu Aug 17 01:23:10 2017 +0000
@@ -0,0 +1,17 @@
+# $NetBSD: buildlink3.mk,v 1.1 2017/08/17 01:23:10 gavan Exp $
+
+BUILDLINK_TREE+=       go-errors
+
+.if !defined(GO_ERRORS_BUILDLINK3_MK)
+GO_ERRORS_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-errors=   ${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-errors?=                build
+
+BUILDLINK_API_DEPENDS.go-errors+=      go-errors>=0.6.0
+BUILDLINK_PKGSRCDIR.go-errors?=                ../../devel/go-errors
+
+.endif  # GO_ERRORS_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -go-errors
+
diff -r 141736cb7669 -r a7946518cf31 devel/go-errors/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-errors/distinfo  Thu Aug 17 01:23:10 2017 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/08/17 01:23:10 gavan Exp $
+
+SHA1 (errors-0.6.0.tar.gz) = 1cdcb7955c31269164c1e23f697c72d149b761bc
+RMD160 (errors-0.6.0.tar.gz) = a46a88c12490c1295aff9a981756dccb908fa309
+SHA512 (errors-0.6.0.tar.gz) = bc60e598230c36bd3b81a311c31736ac59a0e88ae2952501422df46437bc35349119fd57df7f0e0d0e39300af7d6d794b3bf5298499729531946499f64643718
+Size (errors-0.6.0.tar.gz) = 7853 bytes



Home | Main Index | Thread Index | Old Index