[GH-ISSUE #972] [enhancement] support go modules #773

Closed
opened 2026-05-05 12:29:36 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @doggeddog on GitHub (Nov 13, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/972

What version of frp are you using (./frpc -v or ./frps -v)?
0.21.0

What operating system and processor architecture are you using (go env)?
linux/windows

Configures you used:
none

Steps to reproduce the issue:

  1. you need go version >= 1.11. clone this project outside of GOPATH
  2. git clone https://github.com/fatedier/frp.git
  3. cd frp/cmd/frpc
  4. go mod init frpc
  5. go build

Describe the results you received:
$ go build
go: finding github.com/fatedier/golib/crypto latest
go: finding github.com/fatedier/golib/net latest
go: finding github.com/fatedier/golib/pool latest
go: finding github.com/fatedier/golib/control/shutdown latest
go: finding github.com/fatedier/golib/msg/json latest
go: finding github.com/fatedier/golib/errors latest
go: finding github.com/fatedier/golib/io latest
go: finding github.com/fatedier/golib/control latest
go: finding github.com/fatedier/golib/msg latest
build frpc: cannot find module for path github.com/fatedier/golib/control/shutdown

Describe the results you expected:
compile use go modules

Additional information you deem important (e.g. issue happens only occasionally):

Can you point out what caused this issue (optional)
the golib's release version v0.1.0 conflict with frp's default build

Originally created by @doggeddog on GitHub (Nov 13, 2018). Original GitHub issue: https://github.com/fatedier/frp/issues/972 **What version of frp are you using (./frpc -v or ./frps -v)?** 0.21.0 **What operating system and processor architecture are you using (`go env`)?** linux/windows **Configures you used:** none **Steps to reproduce the issue:** 0. you need go version >= 1.11. clone this project outside of GOPATH 1. git clone https://github.com/fatedier/frp.git 2. cd frp/cmd/frpc 3. go mod init frpc 4. go build **Describe the results you received:** $ go build go: finding github.com/fatedier/golib/crypto latest go: finding github.com/fatedier/golib/net latest go: finding github.com/fatedier/golib/pool latest go: finding github.com/fatedier/golib/control/shutdown latest go: finding github.com/fatedier/golib/msg/json latest go: finding github.com/fatedier/golib/errors latest go: finding github.com/fatedier/golib/io latest go: finding github.com/fatedier/golib/control latest go: finding github.com/fatedier/golib/msg latest build frpc: cannot find module for path github.com/fatedier/golib/control/shutdown **Describe the results you expected:** compile use go modules **Additional information you deem important (e.g. issue happens only occasionally):** **Can you point out what caused this issue (optional)** the golib's release version v0.1.0 conflict with frp's default build
gitea-mirror 2026-05-05 12:29:36 -06:00
  • closed this issue
  • added the
    todo
    label
Author
Owner

@fatedier commented on GitHub (Dec 21, 2018):

Support it when go1.12 is released.

<!-- gh-comment-id:449302106 --> @fatedier commented on GitHub (Dec 21, 2018): Support it when go1.12 is released.
Author
Owner

@fatedier commented on GitHub (Jan 16, 2019):

Add go.mod in dev branch, you can try it.

Outside GOPATH, execute make to build frpc and frps.

<!-- gh-comment-id:454768114 --> @fatedier commented on GitHub (Jan 16, 2019): Add go.mod in dev branch, you can try it. Outside GOPATH, execute `make` to build frpc and frps.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
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: github-starred/frp#773
No description provided.