opencurve / curve

Curve is a sandbox project hosted by the CNCF Foundation. It's cloud-native, high-performance, and easy to operate. Curve is an open-source distributed storage system for block and shared file storage.
https://opencurve.io
Apache License 2.0
2.32k stars 521 forks source link

build: better build tools-v2 and mount /etc/hosts #2989

Open zztaki opened 8 months ago

zztaki commented 8 months ago

What problem does this PR solve?

Issue Number: #2602 and #2978

Problem Summary:

  1. tools-v2 is in the main process of compiling and cannot be skipped.
  2. go1.12.8 dependency can't be downloaded due to resolving incorrect DNS address. Maybe you can see this.

What is changed and how it works?

What's Changed:

  1. When only(akw. target) is specified when building, we will no longer compile tools-v2. (Warning: this will also happen if you manually specify all modules for only)
  2. mount /etc/hosts to docker.

How it Works:

Side effects(Breaking backward compatibility? Performance regression?):

Check List

zztaki commented 8 months ago

cicheck