Home >Backend Development >Golang >Record the process of installing etcd3.3 in go1.13

Record the process of installing etcd3.3 in go1.13

藏色散人
藏色散人forward
2021-12-21 16:34:451902browse

This article is written by the golang tutorial column to introduce to you the problems of installing etcd3.3 in go1.13. I hope it will be helpful to friends in need!

Record the process of installing etcd3.3 in go1.13

Problems with installing etcd3.3 in go1.13

When installing etcd, an error message appears:

cannot find module providing package github.com/coreos/go-systemd/journal

Provides an error in go1.12, but the compilation passes.

go1.13 error.

The solution is as follows:

1. Pull go-systemd from github and save it to $GOPATH src

git clone github.com/coreos/go-systemd

2. Use replace Replace go-systemd

## go.mod
replace github.com/coreos/go-systemd => /home/xingyys/Go/src/github.com/coreos/go-systemd

in go.mod. Note here:

Do not use the path github.com/coreos/go-systemd/journal directly. Because there is no go.mod file in this path.

Requires the previous directory.

The above is the detailed content of Record the process of installing etcd3.3 in go1.13. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete