The Go Programming Language
› http://golang.org/
› Go Playground
Go Projects
› Revel Web Framework
dabaibai

golang 如何本地修改第三方库,并且后续还能将远端更新到本地?

  •  
  •   dabaibai · Dec 17, 2020 · 3120 views
    This topic created in 2159 days ago, the information mentioned may be changed or developed.
    golang 如何本地修改第三方库,并且后续还能将远端更新到本地?

    我现在是把第三方库拷贝到本地 然后修改 import ,但是这样要更新就得重新下载拷贝覆盖。。
    5 replies  •  2020-12-17 13:08:04 +08:00
    Vegetable
    Vegetable
    Dec 17, 2020
    1
    路子歪了呀,fork,修改,再 import 自己的。
    dabaibai
    dabaibai
    OP
    Dec 17, 2020
    2
    @Vegetable 好吧。。我路子歪了。。。
    Evrins
    Evrins
    Dec 17, 2020 via iPhone
    3
    go.mod replace remote -> local
    CEBBCAT
    CEBBCAT
    Dec 17, 2020
    4
    我本来想到的是 git submodule
    f6x
    f6x
    Dec 17, 2020
    5
    subtree , submodule 都可以.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2042 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 93ms · UTC 12:53 · PVG 20:53 · LAX 04:53 · JFK 07:53
    ♥ Do have faith in what you're doing.