-
Notifications
You must be signed in to change notification settings - Fork 64
Alena edited this page Mar 31, 2023
·
4 revisions
Go repository is the storage for Go packages, it supports Go Module Proxy protocol. Here is the configuration example:
repo:
type: go
storage:
type: fs
path: /var/artipie/data
Check storage documentations to learn more about storage setting.
In order to use Artipie Go repository, declare the following environment variables:
export GO111MODULE=on
export GOPROXY="http://{host}:{port}/{repository-name}"
export GOSUMDB=off
# the next property is useful if SSL is not configured
export "GOINSECURE={host}*"
Now the package can be installed with the command:
go get -x golang.org/x/time
In the examples above {host}
and {port}
are Artipie service host and port, {repository-name}
is the name of the repository (and repository name is the name of the repo config yaml file).
There is no way to deploy packages to Artipie Go repository for now.