Beijing Institute of Tech CS 在读

还未发布过话题
  • 对于 29L:你往上边找找还有什么包没有装上
    对于 27L:我之前也碰到了这个问题,我把终端代理关掉之后就没有这样的问题了

  • 啊 不好意思没看见回复😂 我是在 ubuntu 下配的 我把 workspace 中的改成了如下:

    load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
    
    http_archive(
        name = "io_bazel_rules_go",
        sha256 = "7be7dc01f1e0afdba6c8eb2b43d2fa01c743be1b9273ab1eaf6c233df078d705",
        urls = ["https://github.com/bazelbuild/rules_go/releases/download/0.16.5/rules_go-0.16.5.tar.gz"],
    )
    
    http_archive(
        name = "bazel_gazelle",
        sha256 = "6e875ab4b6bf64a38c352887760f21203ab054676d9c1b274963907e0768740d",
        urls = ["https://github.com/bazelbuild/bazel-gazelle/releases/download/0.15.0/bazel-gazelle-0.15.0.tar.gz"],
    )
    
    load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
    
    go_rules_dependencies()
    
    go_register_toolchains()
    
    load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")
    
    gazelle_dependencies()
    
    # Google Cloud client libraries.
    go_repository(
        name = "com_google_cloud_go",
        commit = "7ceabc759e1fdbef87e9fda19ef24a5af9dde382",
        importpath = "github.com/googleapis/google-cloud-go",
    )
    
    go_repository(
        name = "org_golang_google_api",
        commit = "a390a77b79400ac64702501e127022f5e2d986c9",
        importpath = "github.com/googleapis/google-api-go-client",
    )
    
    go_repository(
        name = "com_github_googleapis_gax_go",
        commit = "b001040cd31805261cbd978842099e326dfa857b",  # v2.0.2
        importpath = "github.com/googleapis/gax-go",
    )
    
    go_repository(
        name = "org_golang_x_oauth2",
        commit = "9b3c75971fc92dd27c6436a37c05c831498658f1",
        importpath = "github.com/golang/oauth2",
    )
    
    go_repository(
        name = "org_golang_x_sync",
        commit = "37e7f081c4d4c64e13b10787722085407fe5d15f",
        importpath = "github.com/golang/sync",
    )
    
    
    go_repository(
        name = "io_opencensus_go",
        commit = "b7bf3cdb64150a8c8c53b769fdeb2ba581bd4d4b",  # 0.18.0
        importpath = "go.opencensus.io",
    )
    
    go_repository(
        name = "io_opencensus_go_contrib_exporter_stackdriver",
        commit = "2b7f4fc93daf5ec3048fa4fc1c15573466711a17",  # 0.8.0
        importpath = "contrib.go.opencensus.io/exporter/stackdriver",
    )
    
    go_repository(
        name = "com_github_pkg_errors",
        commit = "645ef00459ed84a119197bfb8d8205042c6df63d",  # 0.8.0
        importpath = "github.com/pkg/errors",
    )
    
    go_repository(
        name = "com_github_shirou_gopsutil",
        commit = "0f70a4a06f7a1039305ec9b3ba9c2800f8929fba",  # v2.18.11
        importpath = "github.com/shirou/gopsutil",
    )
    
    go_repository(
        name = "in_gopkg_yaml_v2",
        commit = "51d6538a90f86fe93ac480b35f37b2be17fef232",  # v2.2.2
        importpath = "gopkg.in/yaml.v2",
    )
    
    go_repository(
        name = "org_golang_x_sys",
        commit = "a9d3bda3a223baa6bba6ef412cb273f0fd163c05", 
        importpath = "github.com/golang/sys",
    )
    
  • 我改了 src 文件夹下的 workspace 文件 可以绕过@org_golang_x_tools@com_google_cloud_go@org_golang_google_ap无法安装的情况

Beijing Institute of Tech CS 在读