How to update packages?

With a new ESP32 project I get an error in esp32-hal-uart.c .
If I look at Github the source was updated belonging this error.

How to update or synchronize such sources ?

Thank You

At run time or at compile time? Are you sure the HAL is to blame and not the usage of it?

Running on the bleeding edge master source is usually not a good thing, PlatformIO uses the latest stable version of the core (Arduino-ESP32 2.0.14).

Thank You.
It was a comment at compile.
I will ignore it