pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel New package, go-mod-0.4.0.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fa91a0342be0
branches:  trunk
changeset: 442963:fa91a0342be0
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Fri Dec 04 09:25:33 2020 +0000

description:
New package, go-mod-0.4.0.

Ironically, this is not packaged as a Go module, because it is a dependency
of go-tools.

This repository holds packages for writing tools
that work directly with Go module mechanics.
That is, it is for direct manipulation of Go modules themselves.

It is NOT about supporting general development tools that
need to do things like load packages in module mode.
That use case, where modules are incidental rather than the focus,
should remain in x/tools, specifically x/tools/go/packages.

The specific case of loading packages should still be done by
invoking the go command, which remains the single point of
truth for package loading algorithms.

diffstat:

 devel/Makefile             |    3 +-
 devel/go-mod/DESCR         |   12 ++++
 devel/go-mod/Makefile      |   23 ++++++++
 devel/go-mod/PLIST         |  118 +++++++++++++++++++++++++++++++++++++++++++++
 devel/go-mod/buildlink3.mk |   18 ++++++
 devel/go-mod/distinfo      |    6 ++
 6 files changed, 179 insertions(+), 1 deletions(-)

diffs (214 lines):

diff -r 339761baf729 -r fa91a0342be0 devel/Makefile
--- a/devel/Makefile    Fri Dec 04 09:25:25 2020 +0000
+++ b/devel/Makefile    Fri Dec 04 09:25:33 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3279 2020/12/03 07:51:24 wiz Exp $
+# $NetBSD: Makefile,v 1.3280 2020/12/04 09:25:33 bsiegert Exp $
 #
 
 COMMENT=       Development utilities
@@ -445,6 +445,7 @@
 SUBDIR+=       go-logrus
 SUBDIR+=       go-mapstructure
 SUBDIR+=       go-mapstructure-bep
+SUBDIR+=       go-mod
 SUBDIR+=       go-mow-cli
 SUBDIR+=       go-nbreader
 SUBDIR+=       go-nitro
diff -r 339761baf729 -r fa91a0342be0 devel/go-mod/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-mod/DESCR        Fri Dec 04 09:25:33 2020 +0000
@@ -0,0 +1,12 @@
+This repository holds packages for writing tools
+that work directly with Go module mechanics.
+That is, it is for direct manipulation of Go modules themselves.
+
+It is NOT about supporting general development tools that
+need to do things like load packages in module mode.
+That use case, where modules are incidental rather than the focus,
+should remain in x/tools, specifically x/tools/go/packages.
+
+The specific case of loading packages should still be done by
+invoking the go command, which remains the single point of
+truth for package loading algorithms.
diff -r 339761baf729 -r fa91a0342be0 devel/go-mod/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-mod/Makefile     Fri Dec 04 09:25:33 2020 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2020/12/04 09:25:33 bsiegert Exp $
+
+GITHUB_PROJECT=        mod
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+DISTNAME=      mod-0.4.0
+PKGNAME=       go-${DISTNAME}
+CATEGORIES=    devel
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=golang/}
+
+MAINTAINER=    bsiegert%NetBSD.org@localhost
+HOMEPAGE=      https://pkg.go.dev/golang.org/x/mod/
+COMMENT=       Go module mechanics libraries
+LICENSE=       modified-bsd
+
+GO_SRCPATH=    golang.org/x/mod
+GO_DIST_BASE=  ${DISTNAME}
+
+REPLACE_BASH+= gosumcheck/test.bash
+
+.include "../../devel/go-xerrors/buildlink3.mk"
+.include "../../lang/go/go-package.mk"
+.include "../../security/go-crypto/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 339761baf729 -r fa91a0342be0 devel/go-mod/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-mod/PLIST        Fri Dec 04 09:25:33 2020 +0000
@@ -0,0 +1,118 @@
+@comment $NetBSD: PLIST,v 1.1 2020/12/04 09:25:33 bsiegert Exp $
+bin/gosumcheck
+gopkg/pkg/${GO_PLATFORM}/golang.org/x/mod/internal/lazyregexp.a
+gopkg/pkg/${GO_PLATFORM}/golang.org/x/mod/modfile.a
+gopkg/pkg/${GO_PLATFORM}/golang.org/x/mod/module.a
+gopkg/pkg/${GO_PLATFORM}/golang.org/x/mod/semver.a
+gopkg/pkg/${GO_PLATFORM}/golang.org/x/mod/sumdb.a
+gopkg/pkg/${GO_PLATFORM}/golang.org/x/mod/sumdb/dirhash.a
+gopkg/pkg/${GO_PLATFORM}/golang.org/x/mod/sumdb/note.a
+gopkg/pkg/${GO_PLATFORM}/golang.org/x/mod/sumdb/storage.a
+gopkg/pkg/${GO_PLATFORM}/golang.org/x/mod/sumdb/tlog.a
+gopkg/pkg/${GO_PLATFORM}/golang.org/x/mod/zip.a
+gopkg/src/golang.org/x/mod/LICENSE
+gopkg/src/golang.org/x/mod/PATENTS
+gopkg/src/golang.org/x/mod/README
+gopkg/src/golang.org/x/mod/codereview.cfg
+gopkg/src/golang.org/x/mod/go.mod
+gopkg/src/golang.org/x/mod/go.sum
+gopkg/src/golang.org/x/mod/gosumcheck/main.go
+gopkg/src/golang.org/x/mod/gosumcheck/test.bash
+gopkg/src/golang.org/x/mod/gosumcheck/test.sum
+gopkg/src/golang.org/x/mod/internal/lazyregexp/lazyre.go
+gopkg/src/golang.org/x/mod/modfile/print.go
+gopkg/src/golang.org/x/mod/modfile/read.go
+gopkg/src/golang.org/x/mod/modfile/read_test.go
+gopkg/src/golang.org/x/mod/modfile/rule.go
+gopkg/src/golang.org/x/mod/modfile/rule_test.go
+gopkg/src/golang.org/x/mod/modfile/testdata/block.golden
+gopkg/src/golang.org/x/mod/modfile/testdata/block.in
+gopkg/src/golang.org/x/mod/modfile/testdata/comment.golden
+gopkg/src/golang.org/x/mod/modfile/testdata/comment.in
+gopkg/src/golang.org/x/mod/modfile/testdata/empty.golden
+gopkg/src/golang.org/x/mod/modfile/testdata/empty.in
+gopkg/src/golang.org/x/mod/modfile/testdata/gopkg.in.golden
+gopkg/src/golang.org/x/mod/modfile/testdata/module.golden
+gopkg/src/golang.org/x/mod/modfile/testdata/module.in
+gopkg/src/golang.org/x/mod/modfile/testdata/replace.golden
+gopkg/src/golang.org/x/mod/modfile/testdata/replace.in
+gopkg/src/golang.org/x/mod/modfile/testdata/replace2.golden
+gopkg/src/golang.org/x/mod/modfile/testdata/replace2.in
+gopkg/src/golang.org/x/mod/modfile/testdata/retract.golden
+gopkg/src/golang.org/x/mod/modfile/testdata/retract.in
+gopkg/src/golang.org/x/mod/modfile/testdata/rule1.golden
+gopkg/src/golang.org/x/mod/module/module.go
+gopkg/src/golang.org/x/mod/module/module_test.go
+gopkg/src/golang.org/x/mod/semver/semver.go
+gopkg/src/golang.org/x/mod/semver/semver_test.go
+gopkg/src/golang.org/x/mod/sumdb/cache.go
+gopkg/src/golang.org/x/mod/sumdb/client.go
+gopkg/src/golang.org/x/mod/sumdb/client_test.go
+gopkg/src/golang.org/x/mod/sumdb/dirhash/hash.go
+gopkg/src/golang.org/x/mod/sumdb/dirhash/hash_test.go
+gopkg/src/golang.org/x/mod/sumdb/note/example_test.go
+gopkg/src/golang.org/x/mod/sumdb/note/note.go
+gopkg/src/golang.org/x/mod/sumdb/note/note_test.go
+gopkg/src/golang.org/x/mod/sumdb/server.go
+gopkg/src/golang.org/x/mod/sumdb/storage/mem.go
+gopkg/src/golang.org/x/mod/sumdb/storage/mem_test.go
+gopkg/src/golang.org/x/mod/sumdb/storage/storage.go
+gopkg/src/golang.org/x/mod/sumdb/storage/test.go
+gopkg/src/golang.org/x/mod/sumdb/test.go
+gopkg/src/golang.org/x/mod/sumdb/tlog/ct_test.go
+gopkg/src/golang.org/x/mod/sumdb/tlog/note.go
+gopkg/src/golang.org/x/mod/sumdb/tlog/note_test.go
+gopkg/src/golang.org/x/mod/sumdb/tlog/tile.go
+gopkg/src/golang.org/x/mod/sumdb/tlog/tlog.go
+gopkg/src/golang.org/x/mod/sumdb/tlog/tlog_test.go
+gopkg/src/golang.org/x/mod/zip/testdata/check_dir/empty.txt
+gopkg/src/golang.org/x/mod/zip/testdata/check_dir/various.txt
+gopkg/src/golang.org/x/mod/zip/testdata/check_files/empty.txt
+gopkg/src/golang.org/x/mod/zip/testdata/check_files/various.txt
+gopkg/src/golang.org/x/mod/zip/testdata/check_zip/empty.txt
+gopkg/src/golang.org/x/mod/zip/testdata/check_zip/various.txt
+gopkg/src/golang.org/x/mod/zip/testdata/create/bad_file_path.txt
+gopkg/src/golang.org/x/mod/zip/testdata/create/bad_gomod_case.txt
+gopkg/src/golang.org/x/mod/zip/testdata/create/bad_mod_path.txt
+gopkg/src/golang.org/x/mod/zip/testdata/create/bad_mod_path_version_suffix.txt
+gopkg/src/golang.org/x/mod/zip/testdata/create/bad_version.txt
+gopkg/src/golang.org/x/mod/zip/testdata/create/dup_file.txt
+gopkg/src/golang.org/x/mod/zip/testdata/create/dup_file_and_dir.txt
+gopkg/src/golang.org/x/mod/zip/testdata/create/empty.txt
+gopkg/src/golang.org/x/mod/zip/testdata/create/exclude_cap_go_mod_submodule.txt
+gopkg/src/golang.org/x/mod/zip/testdata/create/exclude_submodule.txt
+gopkg/src/golang.org/x/mod/zip/testdata/create/exclude_vendor.txt
+gopkg/src/golang.org/x/mod/zip/testdata/create/file_case_conflict.txt
+gopkg/src/golang.org/x/mod/zip/testdata/create/go_mod_dir.txt
+gopkg/src/golang.org/x/mod/zip/testdata/create/invalid_utf8_mod_path.txt
+gopkg/src/golang.org/x/mod/zip/testdata/create/simple.txt
+gopkg/src/golang.org/x/mod/zip/testdata/create_from_dir/bad_file_path.txt
+gopkg/src/golang.org/x/mod/zip/testdata/create_from_dir/bad_gomod_case.txt
+gopkg/src/golang.org/x/mod/zip/testdata/create_from_dir/bad_mod_path.txt
+gopkg/src/golang.org/x/mod/zip/testdata/create_from_dir/bad_mod_path_version_suffix.txt
+gopkg/src/golang.org/x/mod/zip/testdata/create_from_dir/bad_version.txt
+gopkg/src/golang.org/x/mod/zip/testdata/create_from_dir/empty.txt
+gopkg/src/golang.org/x/mod/zip/testdata/create_from_dir/exclude_submodule.txt
+gopkg/src/golang.org/x/mod/zip/testdata/create_from_dir/exclude_vcs.txt
+gopkg/src/golang.org/x/mod/zip/testdata/create_from_dir/exclude_vendor.txt
+gopkg/src/golang.org/x/mod/zip/testdata/create_from_dir/go_mod_dir.txt
+gopkg/src/golang.org/x/mod/zip/testdata/create_from_dir/invalid_utf8_mod_path.txt
+gopkg/src/golang.org/x/mod/zip/testdata/create_from_dir/simple.txt
+gopkg/src/golang.org/x/mod/zip/testdata/unzip/bad_file_path.txt
+gopkg/src/golang.org/x/mod/zip/testdata/unzip/bad_gomod_case.txt
+gopkg/src/golang.org/x/mod/zip/testdata/unzip/bad_mod_path.txt
+gopkg/src/golang.org/x/mod/zip/testdata/unzip/bad_mod_path_version_suffix.txt
+gopkg/src/golang.org/x/mod/zip/testdata/unzip/bad_submodule.txt
+gopkg/src/golang.org/x/mod/zip/testdata/unzip/bad_version.txt
+gopkg/src/golang.org/x/mod/zip/testdata/unzip/cap_go_mod_not_submodule.txt
+gopkg/src/golang.org/x/mod/zip/testdata/unzip/dup_file.txt
+gopkg/src/golang.org/x/mod/zip/testdata/unzip/dup_file_and_dir.txt
+gopkg/src/golang.org/x/mod/zip/testdata/unzip/empty.txt
+gopkg/src/golang.org/x/mod/zip/testdata/unzip/file_case_conflict.txt
+gopkg/src/golang.org/x/mod/zip/testdata/unzip/go_mod_dir.txt
+gopkg/src/golang.org/x/mod/zip/testdata/unzip/invalid_utf8_mod_path.txt
+gopkg/src/golang.org/x/mod/zip/testdata/unzip/prefix_only.txt
+gopkg/src/golang.org/x/mod/zip/testdata/unzip/simple.txt
+gopkg/src/golang.org/x/mod/zip/vendor_test.go
+gopkg/src/golang.org/x/mod/zip/zip.go
+gopkg/src/golang.org/x/mod/zip/zip_test.go
diff -r 339761baf729 -r fa91a0342be0 devel/go-mod/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-mod/buildlink3.mk        Fri Dec 04 09:25:33 2020 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/12/04 09:25:33 bsiegert Exp $
+
+BUILDLINK_TREE+=       go-mod
+
+.if !defined(GO_MOD_BUILDLINK3_MK)
+GO_MOD_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-mod=      ${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-mod?=           build
+
+BUILDLINK_API_DEPENDS.go-mod+= go-mod>=0.4.0
+BUILDLINK_PKGSRCDIR.go-mod?=   ../../devel/go-mod
+
+.include "../../devel/go-xerrors/buildlink3.mk"
+.include "../../security/go-crypto/buildlink3.mk"
+.endif # GO_MOD_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -go-mod
diff -r 339761baf729 -r fa91a0342be0 devel/go-mod/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-mod/distinfo     Fri Dec 04 09:25:33 2020 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/12/04 09:25:33 bsiegert Exp $
+
+SHA1 (mod-0.4.0.tar.gz) = 4ac1a785bc7210d25df2153b82ec928a20f61e4e
+RMD160 (mod-0.4.0.tar.gz) = 44f6d319b64083c0e277a0f7210ace6d95b3cd57
+SHA512 (mod-0.4.0.tar.gz) = 90c1e3857aba03df889f152a26026a0deb8353a3b78c813b2ac091fdcb4ec92c2d8dc0e450613a3e79bca342601ee0202239ec69ea8f505b3e1b5d553ba2edd7
+Size (mod-0.4.0.tar.gz) = 102301 bytes



Home | Main Index | Thread Index | Old Index