Nix error path is a symlink

Hi everybody,

One of my inputs in a flake is a symlink:

{
  inputs = {
    foobar.url = "path:/sym/link/and/relative"
...

I can update it with the old Nix:

nix run nixpkgs/nixos-24.05#nix -- flake lock --update-input foobar

but I can’t update it with the current one:

nix --version

nix (Nix) 2.28.5

nix flake update foobar

I get:

error: path '//sym/link' is a symlink

Could you please tell me what’s the problem? What’s wrong with a symlink?

Thank you.