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

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

藏色散人
Release: 2021-12-21 16:34:45
forward
1942 people have browsed it

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
Copy after login

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
Copy after login

2. Use replace Replace go-systemd

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

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!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
How to choose golang web mvc framework
From 1970-01-01 08:00:00
0
0
0
Is it necessary to use nginx when using golang?
From 1970-01-01 08:00:00
0
0
0
golang - vim plug-in to write go
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template