ARMmbed / mbed-os

Arm Mbed OS is a platform operating system designed for the internet of things
https://mbed.com
Other
4.67k stars 2.98k forks source link

Offline Build not possible because of greentea-client dependency #15328

Open Hasibii opened 2 years ago

Hasibii commented 2 years ago

Description of defect

Building mbed os in an offline environment is not possible because of the mandatory greentea-client defined in /extern/CMakeLists.txt even if no BUILD_GREENTEA_TESTS is defined

FetchContent_Declare(
    greentea-client
    GIT_REPOSITORY  https://github.com/ARMmbed/greentea-client.git
    GIT_TAG         472aad2327fbfde827852fc44775904706847a3a
)

FetchContent_MakeAvailable(greentea-client)

resulting the following error:

[1/9] Creating directories for 'greentea-client-populate'
[1/9] Performing download step (git clone) for 'greentea-client-populate'
Cloning into 'greentea-client-src'...
fatal: unable to access 'https://github.com/ARMmbed/greentea-client.git/': Failed to connect to github.com port 443: Connection timed out
Cloning into 'greentea-client-src'...
fatal: unable to access 'https://github.com/ARMmbed/greentea-client.git/': Failed to connect to github.com port 443: Connection timed out
Cloning into 'greentea-client-src'...
fatal: unable to access 'https://github.com/ARMmbed/greentea-client.git/': Failed to connect to github.com port 443: Connection timed out
-- Had to git clone more than once:
          3 times.
CMake Error at greentea-client-subbuild/greentea-client-populate-prefix/tmp/greentea-client-populate-gitclone.cmake:31 (message):
  Failed to clone repository:
  'https://github.com/ARMmbed/greentea-client.git'

Target(s) affected by this defect ?

all targets

Toolchain(s) (name and version) displaying this defect ?

mbed-tools --version
7.53.0

What version of Mbed-os are you using (tag or sha) ?

mbed-os: 6.15.1

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

mbed-tools --version
7.53.0

How is this defect reproduced ?

disconnect internet, clean build mbed os project

0xc0170 commented 2 years ago

Hi @Hasibii .Thanks for the report. Would you send a pull request fixing this?