去建立单个或单独的缓存目录

时间:2019-06-12 06:33:51

标签: go build

我有多个Go项目正在将其构建缓存在默认的datapath_type=netdev目录中。根据Golang的官方documentation

  

go命令会定期删除最近未使用的缓存数据。运行“ go clean -cache”会删除所有缓存的数据。

因此,如果我理解正确,随着项目构建数量的增加,2019-06-13T03:38:33.303Z|00068|ofproto_dpif|INFO|netdev@ovs-netdev: Datapath supports recirculation 2019-06-13T03:38:33.303Z|00069|ofproto_dpif|INFO|netdev@ovs-netdev: MPLS label stack length probed as 3 2019-06-13T03:38:33.303Z|00070|ofproto_dpif|INFO|netdev@ovs-netdev: Datapath supports truncate action 2019-06-13T03:38:33.303Z|00071|ofproto_dpif|INFO|netdev@ovs-netdev: Datapath supports unique flow ids 2019-06-13T03:38:33.303Z|00072|ofproto_dpif|INFO|netdev@ovs-netdev: Datapath supports ct_state 2019-06-13T03:38:33.303Z|00073|ofproto_dpif|INFO|netdev@ovs-netdev: Datapath supports ct_zone 2019-06-13T03:38:33.303Z|00074|ofproto_dpif|INFO|netdev@ovs-netdev: Datapath supports ct_mark 2019-06-13T03:38:33.303Z|00075|ofproto_dpif|INFO|netdev@ovs-netdev: Datapath supports ct_label 2019-06-13T03:38:33.303Z|00076|ofproto_dpif|INFO|netdev@ovs-netdev: Datapath does not support ct_state_nat 2019-06-13T03:38:33.304Z|00077|bridge|INFO|bridge ovs-br1: added interface ovs-br1 on port 65534 2019-06-13T03:38:33.304Z|00078|bridge|INFO|bridge ovs-br1: using datapath ID 00005203106b4948 2019-06-13T03:38:33.304Z|00079|connmgr|INFO|ovs-br1: added service controller "punix:/usr/local/var/run/openvswitch/ovs-br1.mgmt" 2019-06-13T03:38:41.003Z|00080|bridge|INFO|bridge ovs-br1: added interface 1dd6d0d9888a4_l on port 1 2019-06-13T03:38:41.003Z|00081|netdev_linux|WARN|error receiving Ethernet packet on 1dd6d0d9888a4_l: Network is down 2019-06-13T03:38:41.003Z|00082|dpif_netdev|ERR|error receiving data from 1dd6d0d9888a4_l: Network is down 2019-06-13T03:38:41.241Z|00083|bridge|INFO|bridge ovs-br1: added interface 959a4d31f93c4_l on port 2 2019-06-13T03:38:41.241Z|00084|netdev_linux|WARN|error receiving Ethernet packet on 959a4d31f93c4_l: Network is down 2019-06-13T03:38:41.241Z|00085|dpif_netdev|ERR|error receiving data from 959a4d31f93c4_l: Network is down 似乎将覆盖这些缓存。因此,将每个项目的构建缓存保存在单独的位置是否有好处?

1 个答案:

答案 0 :(得分:1)

每个程序包都有自己的缓存。拥有单独的位置没有好处。