Error: you are not connected to internet

I know that Pio core 3.5.0 up can compile without internet and disabling pio upgrade, but if the some library that define depedencies on their library.json, the error: you are not connected to internet is coming up again. here the verbose output.

Library Storage: /home/farid/Code/Firmware/blumbangreksa-firmware/.piolibdeps
LibraryManager: Installing id=31
Adafruit Unified Sensor @ 1.0.2 is already installed
LibraryManager: Installing id=1284 @ ^0.2.2
AnalogPHMeter @ 0.2.2 is already installed
LibraryManager: Installing id=54
DallasTemperature @ 3.7.8 is already installed
Installing dependencies

Looking for OneWire library in registry
Error: You are not connected to the Internet.
If you build a project first time, we need Internet connection to install all dependencies and toolchain.

Some times i need to program in remote location that has no internet connection so this is a pain.
Thank you

This is a bug and we are working on that. See a similar report: