You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Moving to Go modules is straight forward, but one thing to consider is whether this package should change its import path. Right now, we do not use the canonical import path (a vestige from before moving the package to its final home). This means that if your source files are goimports -s-ed, then you have:
import (
vici "github.com/strongswan/govici"
)
Since this is not best practice for a package, I would like to use migration to Go modules as an opportunity to make sure this package does follow best practices.
I think the simplest option is to initialize the go module as github.com/strongswan/govici, and move the existing *.go files to vici/ sub-directory. This does mean that existing users of the package will have to change their import paths to github.com/strongswan/govici/vici when they uprev to v0.1.0.
The text was updated successfully, but these errors were encountered:
Initialize go module as github.com/strongswan/govici, and set minimum Go
version to 1.11.
While migrating to modules, create subdirectory vici/ so that the
package can have a canonical import path. While this does require users
to change their import path, the impact is minimal.
Finally, update any references to the old import path in README.md and
docs/getting_started.md.
Related: #10
Signed-off-by: Nick Rosbrook <nr@enr0n.net>
Initialize go module as github.com/strongswan/govici, and set minimum Go
version to 1.11.
While migrating to modules, create subdirectory vici/ so that the
package can have a canonical import path. While this does require users
to change their import path, the impact is minimal.
Finally, update any references to the old import path in README.md and
docs/getting_started.md.
Related: #10
Signed-off-by: Nick Rosbrook <nr@enr0n.net>
Moving to Go modules is straight forward, but one thing to consider is whether this package should change its import path. Right now, we do not use the canonical import path (a vestige from before moving the package to its final home). This means that if your source files are
goimports -s
-ed, then you have:Since this is not best practice for a package, I would like to use migration to Go modules as an opportunity to make sure this package does follow best practices.
I think the simplest option is to initialize the go module as
github.com/strongswan/govici
, and move the existing *.go files tovici/
sub-directory. This does mean that existing users of the package will have to change their import paths togithub.com/strongswan/govici/vici
when they uprev tov0.1.0
.The text was updated successfully, but these errors were encountered: