glauth #13

Open
opened 2022-06-27 18:17:31 +00:00 by codedotjs · 5 comments

A lightweight LDAP server for development, home use, or CI.

A lightweight LDAP server for development, home use, or CI. * [Website](https://glauth.github.io/) * [Documentation](https://glauth.github.io/docs/) * [GitHub](https://github.com/glauth/glauth/)
codedotjs added this to the Packages project 2022-06-27 18:17:45 +00:00
a changed title from GLAuth to glauth 2022-06-28 18:00:11 +00:00
Author

Wrong button…

Wrong button…
Author

I added a simple nixpkg to the repo. However the package isn't ready yet. There is an error during build phase:

building
go: github.com/hydronica/toml@v0.4.2 (replaced by ./toml): reading toml/go.mod: open /build/source/toml/go.mod: no such file or directory
go: downloading github.com/go-logr/logr v0.4.0
go: downloading github.com/GeertJohan/yubigo v0.0.0-20190917122436-175bc097e60e
go: downloading github.com/nmcclain/ldap v0.0.0-20210720162743-7f8d1e44eeba
go: downloading github.com/pquerna/otp v1.3.0
go: downloading github.com/yaegashi/msgraph.go v0.1.1-0.20200221123608-2d438cf2a7cc
go: downloading golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97
go: downloading github.com/go-sql-driver/mysql v1.5.0
go: downloading github.com/lib/pq v1.10.0
go: downloading github.com/mattn/go-sqlite3 v1.14.6
go: downloading github.com/arl/statsviz v0.4.0
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815
go: downloading github.com/fsnotify/fsnotify v1.4.9
go: downloading github.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a
go: downloading github.com/op/go-logging v0.0.0-20160315200505-970db520ece7
go: downloading gopkg.in/amz.v3 v3.0.0-20201001071545-24fc1eceb27b
go: downloading github.com/smartystreets/goconvey v1.6.4
go: downloading github.com/boombuler/barcode v1.0.1
go: github.com/hydronica/toml@v0.4.2 (replaced by ./toml): reading toml/go.mod: open /build/source/toml/go.mod: no such file or directory
error: builder for '/nix/store/i1qk5jpaklbh4k7asdcrdyjbj9c4grzv-glauth-2.1.0-go-modules.drv' failed with exit code 1;

There seems to be an issue with the github.com/hydronica/toml v0.4.2 repository.

I added a simple nixpkg to the repo. However the package isn't ready yet. There is an error during build phase: ``` building go: github.com/hydronica/toml@v0.4.2 (replaced by ./toml): reading toml/go.mod: open /build/source/toml/go.mod: no such file or directory go: downloading github.com/go-logr/logr v0.4.0 go: downloading github.com/GeertJohan/yubigo v0.0.0-20190917122436-175bc097e60e go: downloading github.com/nmcclain/ldap v0.0.0-20210720162743-7f8d1e44eeba go: downloading github.com/pquerna/otp v1.3.0 go: downloading github.com/yaegashi/msgraph.go v0.1.1-0.20200221123608-2d438cf2a7cc go: downloading golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 go: downloading github.com/go-sql-driver/mysql v1.5.0 go: downloading github.com/lib/pq v1.10.0 go: downloading github.com/mattn/go-sqlite3 v1.14.6 go: downloading github.com/arl/statsviz v0.4.0 go: downloading github.com/davecgh/go-spew v1.1.1 go: downloading github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815 go: downloading github.com/fsnotify/fsnotify v1.4.9 go: downloading github.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a go: downloading github.com/op/go-logging v0.0.0-20160315200505-970db520ece7 go: downloading gopkg.in/amz.v3 v3.0.0-20201001071545-24fc1eceb27b go: downloading github.com/smartystreets/goconvey v1.6.4 go: downloading github.com/boombuler/barcode v1.0.1 go: github.com/hydronica/toml@v0.4.2 (replaced by ./toml): reading toml/go.mod: open /build/source/toml/go.mod: no such file or directory error: builder for '/nix/store/i1qk5jpaklbh4k7asdcrdyjbj9c4grzv-glauth-2.1.0-go-modules.drv' failed with exit code 1; ``` There seems to be an issue with the `github.com/hydronica/toml v0.4.2` repository.
Author

The issue seems to be caused by the go.mod file:

module github.com/glauth/glauth/v2

go 1.16

// Do not mistake /vendored for /vendor!
replace github.com/hydronica/toml => ./vendored/toml

require (
	github.com/GeertJohan/yubigo v0.0.0-20190917122436-175bc097e60e
	github.com/arl/statsviz v0.4.0
	github.com/boombuler/barcode v1.0.1 // indirect
	github.com/davecgh/go-spew v1.1.1 // indirect
	github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815
	github.com/fsnotify/fsnotify v1.4.9
	github.com/go-logr/logr v0.4.0
	github.com/go-sql-driver/mysql v1.5.0
	github.com/hydronica/toml v0.4.2
	github.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a
	github.com/lib/pq v1.10.0
	github.com/mattn/go-sqlite3 v1.14.6
	github.com/nmcclain/ldap v0.0.0-20210720162743-7f8d1e44eeba
	github.com/op/go-logging v0.0.0-20160315200505-970db520ece7
	github.com/pquerna/otp v1.3.0
	github.com/smartystreets/goconvey v1.6.4
	github.com/yaegashi/msgraph.go v0.1.1-0.20200221123608-2d438cf2a7cc
	golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97
	gopkg.in/amz.v3 v3.0.0-20201001071545-24fc1eceb27b
	gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
)

Line 6 sais replace github.com/hydronica/toml => ./vendored/toml. Probably we have to change something there.

The issue seems to be caused by the `go.mod` file: ``` module github.com/glauth/glauth/v2 go 1.16 // Do not mistake /vendored for /vendor! replace github.com/hydronica/toml => ./vendored/toml require ( github.com/GeertJohan/yubigo v0.0.0-20190917122436-175bc097e60e github.com/arl/statsviz v0.4.0 github.com/boombuler/barcode v1.0.1 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815 github.com/fsnotify/fsnotify v1.4.9 github.com/go-logr/logr v0.4.0 github.com/go-sql-driver/mysql v1.5.0 github.com/hydronica/toml v0.4.2 github.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a github.com/lib/pq v1.10.0 github.com/mattn/go-sqlite3 v1.14.6 github.com/nmcclain/ldap v0.0.0-20210720162743-7f8d1e44eeba github.com/op/go-logging v0.0.0-20160315200505-970db520ece7 github.com/pquerna/otp v1.3.0 github.com/smartystreets/goconvey v1.6.4 github.com/yaegashi/msgraph.go v0.1.1-0.20200221123608-2d438cf2a7cc golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 gopkg.in/amz.v3 v3.0.0-20201001071545-24fc1eceb27b gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect ) ``` Line 6 sais `replace github.com/hydronica/toml => ./vendored/toml`. Probably we have to change something there.
Author

The usage of replace can be found in the go manual:

replace directive

A replace directive replaces the contents of a specific version of a module, or all versions of a module, with contents found elsewhere. The replacement may be specified with either another module path and version, or a platform-specific file path.

If a version is present on the left side of the arrow (=>), only that specific version of the module is replaced; other versions will be accessed normally. If the left version is omitted, all versions of the module are replaced.

If the path on the right side of the arrow is an absolute or relative path (beginning with ./ or ../), it is interpreted as the local file path to the replacement module root directory, which must contain a go.mod file. The replacement version must be omitted in this case.

If the path on the right side is not a local path, it must be a valid module path. In this case, a version is required. The same module version must not also appear in the build list.

Regardless of whether a replacement is specified with a local path or module path, if the replacement module has a go.mod file, its module directive must match the module path it replaces.

replace directives only apply in the main module’s go.mod file and are ignored in other modules. See Minimal version selection for details.

If there are multiple main modules, all main modules' go.mod files apply. Conflicting replace directives across main modules are disallowed, and must be removed or overridden in a replace in the go.work file.

Note that a replace directive alone does not add a module to the module graph. A require directive that refers to a replaced module version is also needed, either in the main module’s go.mod file or a dependency’s go.mod file. A replace directive has no effect if the module version on the left side is not required.

ReplaceDirective = "replace" ( ReplaceSpec | "(" newline { ReplaceSpec } ")" newline ) .
ReplaceSpec = ModulePath [ Version ] "=>" FilePath newline
           | ModulePath [ Version ] "=>" ModulePath Version newline .
FilePath = /* platform-specific relative or absolute file path */

Example:

replace golang.org/x/net v1.2.3 => example.com/fork/net v1.4.5

replace (
   golang.org/x/net v1.2.3 => example.com/fork/net v1.4.5
   golang.org/x/net => example.com/fork/net v1.4.5
   golang.org/x/net v1.2.3 => ./fork/net
   golang.org/x/net => ./fork/net
)
The usage of `replace` can be found in the [go manual](https://go.dev/ref/mod#go-mod-file-replace): >**replace directive** > >A replace directive replaces the contents of a specific version of a module, or all versions of a module, with contents found elsewhere. The replacement may be specified with either another module path and version, or a platform-specific file path. > >If a version is present on the left side of the arrow (=>), only that specific version of the module is replaced; other versions will be accessed normally. If the left version is omitted, all versions of the module are replaced. > >If the path on the right side of the arrow is an absolute or relative path (beginning with ./ or ../), it is interpreted as the local file path to the replacement module root directory, which must contain a go.mod file. The replacement version must be omitted in this case. > >If the path on the right side is not a local path, it must be a valid module path. In this case, a version is required. The same module version must not also appear in the build list. > >Regardless of whether a replacement is specified with a local path or module path, if the replacement module has a go.mod file, its module directive must match the module path it replaces. > >replace directives only apply in the main module’s go.mod file and are ignored in other modules. See Minimal version selection for details. > >If there are multiple main modules, all main modules' go.mod files apply. Conflicting replace directives across main modules are disallowed, and must be removed or overridden in a replace in the go.work file. > >Note that a replace directive alone does not add a module to the module graph. A require directive that refers to a replaced module version is also needed, either in the main module’s go.mod file or a dependency’s go.mod file. A replace directive has no effect if the module version on the left side is not required. > >``` >ReplaceDirective = "replace" ( ReplaceSpec | "(" newline { ReplaceSpec } ")" newline ) . >ReplaceSpec = ModulePath [ Version ] "=>" FilePath newline > | ModulePath [ Version ] "=>" ModulePath Version newline . >FilePath = /* platform-specific relative or absolute file path */ >``` > >Example: > >``` >replace golang.org/x/net v1.2.3 => example.com/fork/net v1.4.5 > >replace ( > golang.org/x/net v1.2.3 => example.com/fork/net v1.4.5 > golang.org/x/net => example.com/fork/net v1.4.5 > golang.org/x/net v1.2.3 => ./fork/net > golang.org/x/net => ./fork/net >) >```
a added a new dependency 2022-07-06 16:56:49 +00:00
a removed a dependency 2022-07-17 20:03:15 +00:00
Author

Other applications are more important now. See #157 for more information.

Other applications are more important now. See [#157](https://git.exozy.me/exozyme/exozyme/issues/157#issuecomment-2929) for more information.
This repo is archived. You cannot comment on issues.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: exozyme/nixpkgs#13
No description provided.