Forc.toml [contract-dependecies] and a configurable dependency contract

I’ve found in Sway docs that I can refer to ContractId of a dependency contract in Sway code by dependency::CONTRACT_ID. Excerpt from Forc docs:

[project]
authors = ["user"]
entry = "main.sw"
organization = "Fuel_Labs"
license = "Apache-2.0"
name = "wallet_contract"
 
[contract-dependencies]
foo = { path = "../foo" }

Example usage:

script;

fn main() {
  let foo_id = foo::CONTRACT_ID;
}

That seems to work only for dependency contracts that are not configurable (I guess because we can’t figure out ContractId without knowing configurable values). Is there a way to make this work for a configurable contract?

https://docs.fuel.network/docs/forc/manifest_reference/#the-contract-dependencies-section