Skip to content

filesystem stat/info doesn't give last_commit on the latest version of huggingface-hub (0.34.0) #3263

@Koncopd

Description

@Koncopd

Describe the bug

last_commit is None in stat dict. This works with older versions.

Reproduction

from upath import UPath

hf_path = UPath("hf://datasets/Koncopd/lamindb-test") # uses fsspec and hf filesystem under the hood
hf_path.stat().as_info()["last_commit"] is None

Logs

System info

- huggingface_hub version: 0.34.0
- Platform: Windows-10-10.0.19045-SP0
- Python version: 3.10.16
- Running in iPython ?: No
- Running in notebook ?: No
- Running in Google Colab ?: No
- Running in Google Colab Enterprise ?: No
- Token path ?: C:\Users\sergei.rybakov\.cache\huggingface\token
- Has saved token ?: True
- Who am I ?: Koncopd
- Configured git credential helpers: manager
- FastAI: N/A
- Tensorflow: N/A
- Torch: N/A
- Jinja2: 3.1.5
- Graphviz: 0.20.1
- keras: N/A
- Pydot: N/A
- Pillow: 11.1.0
- hf_transfer: N/A
- gradio: N/A
- tensorboard: N/A
- numpy: 2.0.2
- pydantic: 2.10.5
- aiohttp: 3.11.11
- hf_xet: N/A
- ENDPOINT: https://huggingface.co
- HF_HUB_CACHE: C:\Users\sergei.rybakov\.cache\huggingface\hub
- HF_ASSETS_CACHE: C:\Users\sergei.rybakov\.cache\huggingface\assets
- HF_TOKEN_PATH: C:\Users\sergei.rybakov\.cache\huggingface\token
- HF_STORED_TOKENS_PATH: C:\Users\sergei.rybakov\.cache\huggingface\stored_tokens
- HF_HUB_OFFLINE: False
- HF_HUB_DISABLE_TELEMETRY: False
- HF_HUB_DISABLE_PROGRESS_BARS: None
- HF_HUB_DISABLE_SYMLINKS_WARNING: False
- HF_HUB_DISABLE_EXPERIMENTAL_WARNING: False
- HF_HUB_DISABLE_IMPLICIT_TOKEN: False
- HF_HUB_ENABLE_HF_TRANSFER: False
- HF_HUB_ETAG_TIMEOUT: 10
- HF_HUB_DOWNLOAD_TIMEOUT: 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions