pixi icon indicating copy to clipboard operation
pixi copied to clipboard

Correct (latest) commit not fetched for Git VCS URL dependency

Open deepyaman opened this issue 1 year ago • 9 comments

Checks

  • [x] I have checked that this issue has not already been reported.

  • [x] I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

pixi.toml:

[build-system]
requires = [ "setuptools",]
build-backend = "setuptools.build_meta"

[project]
requires-python = ">=3.9"
name = "dagster-dunks"
readme = "README.md"
dynamic = [ "version",]
dependencies = [ "ipython>=8.10", "jupyterlab>=3.0", "notebook", "kedro~=0.19.11", "kedro-datasets[ibis-duckdb] @ git+https://github.com/kedro-org/kedro-plugins.git/#subdirectory=kedro-datasets",]

[project.scripts]
dagster-dunks = "dagster_dunks.__main__:main"

[project.optional-dependencies]
dev = [ "pytest-cov~=3.0", "pytest-mock>=1.7.1, <2.0", "pytest~=7.2", "ruff>=0.2.0",]

[tool.kedro]
package_name = "dagster_dunks"
project_name = "Dagster Dunks"
kedro_init_version = "0.19.11"
tools = "['Linting', 'Data Structure']"
example_pipeline = "False"
source_dir = "src"

[tool.ruff]
line-length = 88
show-fixes = true

[tool.ruff.lint]
select = [ "F", "W", "E", "I", "UP", "PL", "T201",]
ignore = [ "E501",]

[project.entry-points."kedro.hooks"]

[tool.ruff.format]
docstring-code-format = true

[tool.setuptools.dynamic.version]
attr = "dagster_dunks.__version__"

[tool.setuptools.packages.find]
where = [ "src",]
namespaces = false

[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["osx-arm64"]

[tool.pixi.pypi-dependencies]
dagster_dunks = { path = ".", editable = true }

[tool.pixi.environments]
default = { solve-group = "default" }
dev = { features = ["dev"], solve-group = "dev" }

[tool.pixi.tasks]

[tool.pixi.dependencies]
uv = ">=0.6.6,<0.7"

Issue description

I need a to-be-released version of Kedro-Datasets with https://github.com/kedro-org/kedro-plugins/commit/a30c1894d446a6b6de350bd69125e9d8a9d2ebee.

pixi.lock looks right, in that the latest available commit hash is reflected:

version: 6
environments:
  default:
    channels:
    - url: https://conda.anaconda.org/conda-forge/
    indexes:
    - https://pypi.org/simple
    packages:
      osx-arm64:
      ...
      - pypi: git+https://github.com/kedro-org/kedro-plugins.git/?subdirectory=kedro-datasets#3e05103e32edc5e2f7f044f2a6cab43d4f4a449a
...
- pypi: git+https://github.com/kedro-org/kedro-plugins.git/?subdirectory=kedro-datasets#3e05103e32edc5e2f7f044f2a6cab43d4f4a449a
  name: kedro-datasets
  version: 6.0.0
  requires_dist:
  - kedro>=0.19.7
  - lazy-loader
  - pandas>=1.3,<3.0 ; extra == 'pandas-base'
  - pyspark>=2.2,<4.0 ; extra == 'spark-base'
  - hdfs>=2.5.8,<3.0 ; extra == 'hdfs-base'
  - s3fs>=2021.4 ; extra == 's3fs-base'
  - polars>=0.18.0 ; extra == 'polars-base'
  - plotly>=4.8.0,<6.0 ; extra == 'plotly-base'
  - delta-spark>=1.0,<4.0 ; extra == 'delta-base'
  - networkx~=3.4 ; extra == 'networkx-base'
  - requests~=2.20 ; extra == 'api-apidataset'
  - kedro-datasets[api-apidataset] ; extra == 'api'
  - biopython~=1.73 ; extra == 'biosequence-biosequencedataset'
  - kedro-datasets[biosequence-biosequencedataset] ; extra == 'biosequence'
  - dask[dataframe]>=2021.10 ; extra == 'dask-csvdataset'
  - dask[complete]>=2021.10 ; extra == 'dask-parquetdataset'
  - triad>=0.6.7,<1.0 ; extra == 'dask-parquetdataset'
  - kedro-datasets[dask-csvdataset,dask-parquetdataset] ; extra == 'dask'
  - kedro-datasets[hdfs-base,s3fs-base] ; extra == 'databricks-managedtabledataset'
  - kedro-datasets[databricks-managedtabledataset] ; extra == 'databricks'
  - geopandas>=0.8.0,<2.0 ; extra == 'geopandas-genericdataset'
  - fiona>=1.8,<2.0 ; extra == 'geopandas-genericdataset'
  - kedro-datasets[geopandas-genericdataset] ; extra == 'geopandas'
  - holoviews>=1.13.0 ; extra == 'holoviews-holoviewswriter'
  - kedro-datasets[holoviews-holoviewswriter] ; extra == 'holoviews'
  - datasets ; extra == 'huggingface-hfdataset'
  - huggingface-hub ; extra == 'huggingface-hfdataset'
  - transformers ; extra == 'huggingface-hftransformerpipelinedataset'
  - kedro-datasets[huggingface-hfdataset,huggingface-hftransformerpipelinedataset] ; extra == 'huggingface'
  - ibis-framework[athena] ; extra == 'ibis-athena'
  - ibis-framework[bigquery] ; extra == 'ibis-bigquery'
  - ibis-framework[clickhouse] ; extra == 'ibis-clickhouse'
  - ibis-framework[dask]<10.0 ; extra == 'ibis-dask'
  - ibis-framework[databricks] ; extra == 'ibis-databricks'
  - ibis-framework[datafusion] ; extra == 'ibis-datafusion'
  - ibis-framework[druid] ; extra == 'ibis-druid'
  - ibis-framework[duckdb] ; extra == 'ibis-duckdb'
  - ibis-framework[exasol] ; extra == 'ibis-exasol'
  - ibis-framework ; extra == 'ibis-flink'
  - apache-flink ; extra == 'ibis-flink'
  - ibis-framework[impala] ; extra == 'ibis-impala'
  - ibis-framework[mssql] ; extra == 'ibis-mssql'
  - ibis-framework[mysql] ; extra == 'ibis-mysql'
  - ibis-framework[oracle] ; extra == 'ibis-oracle'
  - ibis-framework[pandas]<10.0 ; extra == 'ibis-pandas'
  - ibis-framework[polars] ; extra == 'ibis-polars'
  - ibis-framework[postgres] ; extra == 'ibis-postgres'
  - ibis-framework[pyspark] ; extra == 'ibis-pyspark'
  - ibis-framework[risingwave] ; extra == 'ibis-risingwave'
  - ibis-framework[snowflake] ; extra == 'ibis-snowflake'
  - ibis-framework[sqlite] ; extra == 'ibis-sqlite'
  - ibis-framework[trino] ; extra == 'ibis-trino'
  - ibis-framework ; extra == 'ibis'
  - kedro-datasets[json-jsondataset] ; extra == 'json'
  - scipy ; extra == 'matlab-matlabdataset'
  - kedro-datasets[matlab-matlabdataset] ; extra == 'matlab'
  - matplotlib>=3.0.3,<4.0 ; extra == 'matplotlib-matplotlibwriter'
  - kedro-datasets[matplotlib-matplotlibwriter] ; extra == 'matplotlib'
  - kedro-datasets[networkx-base] ; extra == 'networkx-gmldataset'
  - kedro-datasets[networkx-base] ; extra == 'networkx-graphmldataset'
  - kedro-datasets[networkx-base] ; extra == 'networkx-jsondataset'
  - kedro-datasets[networkx-base] ; extra == 'networkx'
  - kedro-datasets[pandas-base] ; extra == 'pandas-csvdataset'
  - kedro-datasets[pandas-base] ; extra == 'pandas-deltatabledataset'
  - deltalake>=0.10.0 ; extra == 'pandas-deltatabledataset'
  - kedro-datasets[pandas-base] ; extra == 'pandas-exceldataset'
  - openpyxl>=3.0.6,<4.0 ; extra == 'pandas-exceldataset'
  - kedro-datasets[pandas-base] ; extra == 'pandas-featherdataset'
  - kedro-datasets[pandas-base] ; extra == 'pandas-gbqtabledataset'
  - pandas-gbq>=0.12.0 ; extra == 'pandas-gbqtabledataset'
  - kedro-datasets[pandas-base] ; extra == 'pandas-gbqquerydataset'
  - pandas-gbq>=0.12.0 ; extra == 'pandas-gbqquerydataset'
  - kedro-datasets[pandas-base] ; extra == 'pandas-genericdataset'
  - kedro-datasets[pandas-base] ; extra == 'pandas-hdfdataset'
  - tables>=3.6 ; extra == 'pandas-hdfdataset'
  - kedro-datasets[pandas-base] ; extra == 'pandas-jsondataset'
  - kedro-datasets[pandas-base] ; extra == 'pandas-parquetdataset'
  - pyarrow>=6.0 ; extra == 'pandas-parquetdataset'
  - kedro-datasets[pandas-base] ; extra == 'pandas-sqltabledataset'
  - sqlalchemy>=1.4,<3.0 ; extra == 'pandas-sqltabledataset'
  - kedro-datasets[pandas-base] ; extra == 'pandas-sqlquerydataset'
  - sqlalchemy>=1.4,<3.0 ; extra == 'pandas-sqlquerydataset'
  - pyodbc>=4.0 ; extra == 'pandas-sqlquerydataset'
  - kedro-datasets[pandas-base] ; extra == 'pandas-xmldataset'
  - lxml~=4.6 ; extra == 'pandas-xmldataset'
  - kedro-datasets[pandas-csvdataset,pandas-deltatabledataset,pandas-exceldataset,pandas-featherdataset,pandas-gbqquerydataset,pandas-gbqtabledataset,pandas-genericdataset,pandas-hdfdataset,pandas-jsondataset,pandas-parquetdataset,pandas-sqlquerydataset,pandas-sqltabledataset,pandas-xmldataset] ; extra == 'pandas'
  - compress-pickle[lz4]~=2.1.0 ; extra == 'pickle-pickledataset'
  - kedro-datasets[pickle-pickledataset] ; extra == 'pickle'
  - pillow>=9.0 ; extra == 'pillow-imagedataset'
  - kedro-datasets[pillow-imagedataset] ; extra == 'pillow'
  - kedro-datasets[plotly-base] ; extra == 'plotly-htmldataset'
  - kedro-datasets[plotly-base] ; extra == 'plotly-jsondataset'
  - kedro-datasets[pandas-base,plotly-base] ; extra == 'plotly-plotlydataset'
  - kedro-datasets[plotly-htmldataset,plotly-jsondataset,plotly-plotlydataset] ; extra == 'plotly'
  - kedro-datasets[polars-base] ; extra == 'polars-csvdataset'
  - kedro-datasets[polars-base] ; extra == 'polars-eagerpolarsdataset'
  - pyarrow>=4.0 ; extra == 'polars-eagerpolarsdataset'
  - xlsx2csv>=0.8.0 ; extra == 'polars-eagerpolarsdataset'
  - deltalake>=0.6.2 ; extra == 'polars-eagerpolarsdataset'
  - kedro-datasets[polars-base] ; extra == 'polars-lazypolarsdataset'
  - pyarrow>=4.0 ; extra == 'polars-lazypolarsdataset'
  - deltalake>=0.6.2 ; extra == 'polars-lazypolarsdataset'
  - kedro-datasets[polars-csvdataset,polars-eagerpolarsdataset,polars-lazypolarsdataset] ; extra == 'polars'
  - redis~=4.1 ; extra == 'redis-pickledataset'
  - kedro-datasets[redis-pickledataset] ; extra == 'redis'
  - snowflake-snowpark-python>=1.23 ; extra == 'snowflake-snowparktabledataset'
  - kedro-datasets[snowflake-snowparktabledataset] ; extra == 'snowflake'
  - kedro-datasets[delta-base,hdfs-base,s3fs-base,spark-base] ; extra == 'spark-deltatabledataset'
  - kedro-datasets[hdfs-base,s3fs-base,spark-base] ; extra == 'spark-sparkdataset'
  - kedro-datasets[hdfs-base,s3fs-base,spark-base] ; extra == 'spark-sparkhivedataset'
  - kedro-datasets[spark-base] ; extra == 'spark-sparkjdbcdataset'
  - kedro-datasets[hdfs-base,s3fs-base,spark-base] ; extra == 'spark-sparkstreamingdataset'
  - kedro-datasets[spark-deltatabledataset,spark-sparkdataset,spark-sparkhivedataset,spark-sparkjdbcdataset,spark-sparkstreamingdataset] ; extra == 'spark'
  - scikit-learn>=1.0.2 ; extra == 'svmlight-svmlightdataset'
  - scipy>=1.7.3 ; extra == 'svmlight-svmlightdataset'
  - kedro-datasets[svmlight-svmlightdataset] ; extra == 'svmlight'
  - tensorflow~=2.0 ; (platform_machine != 'arm64' and extra == 'tensorflow-tensorflowmodeldataset') or (sys_platform != 'darwin' and extra == 'tensorflow-tensorflowmodeldataset')
  - tensorflow-macos~=2.0 ; platform_machine == 'arm64' and sys_platform == 'darwin' and extra == 'tensorflow-tensorflowmodeldataset'
  - kedro-datasets[tensorflow-tensorflowmodeldataset] ; extra == 'tensorflow'
  - kedro-datasets[text-textdataset] ; extra == 'text'
  - kedro-datasets[pandas-base] ; extra == 'yaml-yamldataset'
  - pyyaml>=4.2,<7.0 ; extra == 'yaml-yamldataset'
  - kedro-datasets[yaml-yamldataset] ; extra == 'yaml'
  - kedro-datasets[hdfs-base,s3fs-base] ; extra == 'databricks-externaltabledataset'
  - langchain-openai~=0.1.7 ; extra == 'langchain-chatopenaidataset'
  - langchain-openai~=0.1.7 ; extra == 'langchain-openaiembeddingsdataset'
  - langchain-anthropic~=0.1.13 ; extra == 'langchain-chatanthropicdataset'
  - langchain-community~=0.2.0 ; extra == 'langchain-chatanthropicdataset'
  - langchain-cohere~=0.1.5 ; extra == 'langchain-chatcoheredataset'
  - langchain-community~=0.2.0 ; extra == 'langchain-chatcoheredataset'
  - kedro-datasets[langchain-chatanthropicdataset,langchain-chatcoheredataset,langchain-chatopenaidataset,langchain-openaiembeddingsdataset] ; extra == 'langchain'
  - h5netcdf>=1.2.0 ; extra == 'netcdf-netcdfdataset'
  - netcdf4>=1.6.4 ; extra == 'netcdf-netcdfdataset'
  - xarray>=2023.1.0 ; extra == 'netcdf-netcdfdataset'
  - kedro-datasets[netcdf-netcdfdataset] ; extra == 'netcdf'
  - prophet>=1.1.5 ; extra == 'prophet-dataset'
  - kedro-datasets[prophet] ; extra == 'prophet'
  - torch ; extra == 'pytorch-dataset'
  - kedro-datasets[pytorch-dataset] ; extra == 'pytorch'
  - rioxarray>=0.15.0 ; extra == 'rioxarray-geotiffdataset'
  - kedro-datasets[rioxarray-geotiffdataset] ; extra == 'rioxarray'
  - safetensors ; extra == 'safetensors-safetensorsdataset'
  - numpy ; extra == 'safetensors-safetensorsdataset'
  - kedro-datasets[safetensors-safetensorsdataset] ; extra == 'safetensors'
  - opencv-python~=4.5.5.64 ; extra == 'video-videodataset'
  - kedro-datasets[video-videodataset] ; extra == 'video'
  - kedro-sphinx-theme==2024.10.2 ; extra == 'docs'
  - ipykernel>=5.3,<7.0 ; extra == 'docs'
  - jinja2<3.2.0 ; extra == 'docs'
  - accelerate<0.32 ; extra == 'test'
  - adlfs~=2023.1 ; extra == 'test'
  - behave==1.2.6 ; extra == 'test'
  - biopython~=1.73 ; extra == 'test'
  - cloudpickle~=2.2.1 ; extra == 'test'
  - compress-pickle[lz4]~=2.1.0 ; extra == 'test'
  - coverage>=7.2.0 ; extra == 'test'
  - dask[complete]>=2021.10 ; extra == 'test'
  - delta-spark>=1.0,<3.0 ; extra == 'test'
  - deltalake>=0.10.0 ; extra == 'test'
  - dill~=0.3.1 ; extra == 'test'
  - filelock>=3.4.0,<4.0 ; extra == 'test'
  - fiona>=1.8,<2.0 ; extra == 'test'
  - gcsfs>=2023.1,<2023.3 ; extra == 'test'
  - geopandas>=0.8.0,<2.0 ; extra == 'test'
  - hdfs>=2.5.8,<3.0 ; extra == 'test'
  - holoviews>=1.13.0 ; extra == 'test'
  - ibis-framework[duckdb,examples] ; extra == 'test'
  - ipython>=7.31.1,<8.0 ; extra == 'test'
  - jinja2<3.2.0 ; extra == 'test'
  - joblib>=0.14 ; extra == 'test'
  - jupyterlab>=3.0 ; extra == 'test'
  - jupyter~=1.0 ; extra == 'test'
  - lxml~=4.6 ; extra == 'test'
  - matplotlib>=3.5,<4.0 ; extra == 'test'
  - memory-profiler>=0.50.0,<1.0 ; extra == 'test'
  - moto==5.0.0 ; extra == 'test'
  - networkx~=3.4 ; extra == 'test'
  - openpyxl>=3.0.3,<4.0 ; extra == 'test'
  - pandas-gbq>=0.12.0 ; extra == 'test'
  - pandas>=2.0 ; extra == 'test'
  - pillow~=10.0 ; extra == 'test'
  - plotly>=4.8.0,<6.0 ; extra == 'test'
  - polars[deltalake,xlsx2csv]>=1.0 ; extra == 'test'
  - pyarrow>=1.0 ; python_full_version < '3.11' and extra == 'test'
  - pyarrow>=7.0 ; python_full_version >= '3.11' and extra == 'test'
  - pyodbc~=5.0 ; extra == 'test'
  - pyspark>=3.0 ; python_full_version < '3.11' and extra == 'test'
  - pyspark>=3.4 ; python_full_version >= '3.11' and extra == 'test'
  - pytest-cov~=3.0 ; extra == 'test'
  - pytest-mock>=1.7.1,<2.0 ; extra == 'test'
  - pytest-xdist[psutil]~=2.2.1 ; extra == 'test'
  - pytest~=7.2 ; extra == 'test'
  - redis~=4.1 ; extra == 'test'
  - requests-mock~=1.6 ; extra == 'test'
  - requests~=2.20 ; extra == 'test'
  - s3fs>=2021.4 ; extra == 'test'
  - snowflake-snowpark-python>=1.23 ; python_full_version < '3.12' and extra == 'test'
  - scikit-learn>=1.0.2,<2 ; extra == 'test'
  - scipy>=1.7.3 ; extra == 'test'
  - packaging ; extra == 'test'
  - pyopenssl>=22.1.0 ; extra == 'test'
  - sqlalchemy>=1.2 ; extra == 'test'
  - tables>=3.6 ; extra == 'test'
  - tensorflow-macos~=2.0 ; platform_machine == 'arm64' and sys_platform == 'darwin' and extra == 'test'
  - tensorflow~=2.0 ; (platform_machine != 'arm64' and extra == 'test') or (sys_platform != 'darwin' and extra == 'test')
  - triad>=0.6.7,<1.0 ; extra == 'test'
  - xarray>=2023.1.0 ; extra == 'test'
  - xlsxwriter~=1.0 ; extra == 'test'
  - datasets ; extra == 'test'
  - huggingface-hub ; extra == 'test'
  - transformers[torch] ; extra == 'test'
  - bandit>=1.6.2,<2.0 ; extra == 'lint'
  - blacken-docs==1.9.2 ; extra == 'lint'
  - black~=22.0 ; extra == 'lint'
  - detect-secrets~=1.5.0 ; extra == 'lint'
  - import-linter[toml]==1.2.6 ; extra == 'lint'
  - mypy~=1.0 ; extra == 'lint'
  - pre-commit>=2.9.2 ; extra == 'lint'
  - ruff~=0.0.290 ; extra == 'lint'
  - types-cachetools ; extra == 'lint'
  - types-pyyaml ; extra == 'lint'
  - types-redis ; extra == 'lint'
  - types-requests ; extra == 'lint'
  - types-decorator ; extra == 'lint'
  - types-six ; extra == 'lint'
  - types-tabulate ; extra == 'lint'
  - langchain-openai ; extra == 'experimental'
  - langchain-cohere ; extra == 'experimental'
  - langchain-anthropic ; extra == 'experimental'
  - langchain-community ; extra == 'experimental'
  - h5netcdf>=1.2.0 ; extra == 'experimental'
  - netcdf4>=1.6.4 ; extra == 'experimental'
  - xarray>=2023.1.0 ; extra == 'experimental'
  - rioxarray ; extra == 'experimental'
  - torch ; extra == 'experimental'
  - opencv-python~=4.5.5.64 ; extra == 'experimental'
  - prophet>=1.1.5 ; extra == 'experimental'
  - kedro-datasets[docs,lint,test] ; extra == 'all'
  requires_python: '>=3.10'
...

However, the file installed doesn't have the change to table_name=table_name from the aforementioned commit; see .pixi/envs/default/lib/python3.13/site-packages/kedro_datasets/ibis/file_dataset.py.

I've also tried specifying a commit hash in the URL, but it doesn't make a difference.

Expected behavior

If I uv pip install "kedro-datasets[ibis-duckdb] @ git+https://github.com/kedro-org/kedro-plugins.git/#subdirectory=kedro-datasets" on top (from within pixi shell), the correct file is there in .pixi/envs/default/lib/python3.13/site-packages/kedro_datasets/ibis/file_dataset.py.

deepyaman avatar Mar 16 '25 18:03 deepyaman

Could you try to clean the pypi cache and the environments with:

pixi clean
pixi clean cache --pypi
pixi install

This sounds like a caching issue. If this solves your issue we might know where to start.

ruben-arts avatar Mar 17 '25 15:03 ruben-arts

I just saw this issue.

pixi.lock contains the correct (HEAD) commit hash for the git repo, but the changes for this commit are not in the installed file.

pixi upgrade and pixi update did not fix it.

pixi clean
pixi install

did fix it.

cc @hnmulholland @zhouhubnih

histed avatar Mar 17 '25 22:03 histed

@nichmor would you be able to figure out the issue?

ruben-arts avatar Mar 18 '25 15:03 ruben-arts

hey @deepyaman !

I tried to reproduce this issue using the same structure as here: https://github.com/deepyaman/dagster-dunks/blob/main/pyproject.toml

if I'm using the pyproject.toml from the issue I'm receiving the right files in my env

Image

I also tried using this commit as a reference first ( where table_name is not a keyword ) 1a5e0faa7044dc73e7ee2be0fec38c8d2fa2a83c.

I didn't receive the file with the keyword ( as expected ).

Image

and after removing the commit reference from pyproject.toml, and running pixi install I receive the right files again ( so the update works ).

could you please run

pixi clean cache --yes
pixi install

and check again?

nichtmacho avatar Mar 20 '25 16:03 nichtmacho

In case it helps:

When this happened to me it was after a new commit appeared in the git repo. Pixi install was run with an older HEAD, new commits were pushed. pixi install then did not get the new commits and did not change the files in the env. ‘’’pixi clean; pixi install’’’ then worked for me to update the files to the new HEAD.

On Thu 20 Mar 2025 at 09:04, nichmor @.***> wrote:

hey @deepyaman https://github.com/deepyaman !

I tried to reproduce this issue using the same structure as here: https://github.com/deepyaman/dagster-dunks/blob/main/pyproject.toml

if I'm using the pyproject.toml from the issue I'm receiving the right files in my env

Screenshot.2025-03-20.at.17.48.18.png (view on web) https://github.com/user-attachments/assets/704b8b0e-ba82-47d1-8127-a98acef15f5e

I also tried using this commit as a reference first ( where table_name is not a keyword ) 1a5e0faa7044dc73e7ee2be0fec38c8d2fa2a83c.

I didn't receive the file with the keyword ( as expected ).

Screenshot.2025-03-20.at.17.47.14.png (view on web) https://github.com/user-attachments/assets/40a8d3c0-ba55-44f4-bfad-c54daf917f3c

and after removing the commit reference from pyproject.toml, and running pixi install I receive the right files again ( so the update works ).

could you please run

pixi clean cache --yes pixi install

and check again?

— Reply to this email directly, view it on GitHub https://github.com/prefix-dev/pixi/issues/3367#issuecomment-2740966246, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABLCFYSYEPCBET2YR652YD2VLRIDAVCNFSM6AAAAABZD5RKKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONBQHE3DMMRUGY . You are receiving this because you commented.Message ID: @.***> [image: nichmor]nichmor left a comment (prefix-dev/pixi#3367) https://github.com/prefix-dev/pixi/issues/3367#issuecomment-2740966246

hey @deepyaman https://github.com/deepyaman !

I tried to reproduce this issue using the same structure as here: https://github.com/deepyaman/dagster-dunks/blob/main/pyproject.toml

if I'm using the pyproject.toml from the issue I'm receiving the right files in my env

Screenshot.2025-03-20.at.17.48.18.png (view on web) https://github.com/user-attachments/assets/704b8b0e-ba82-47d1-8127-a98acef15f5e

I also tried using this commit as a reference first ( where table_name is not a keyword ) 1a5e0faa7044dc73e7ee2be0fec38c8d2fa2a83c.

I didn't receive the file with the keyword ( as expected ).

Screenshot.2025-03-20.at.17.47.14.png (view on web) https://github.com/user-attachments/assets/40a8d3c0-ba55-44f4-bfad-c54daf917f3c

and after removing the commit reference from pyproject.toml, and running pixi install I receive the right files again ( so the update works ).

could you please run

pixi clean cache --yes pixi install

and check again?

— Reply to this email directly, view it on GitHub https://github.com/prefix-dev/pixi/issues/3367#issuecomment-2740966246, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABLCFYSYEPCBET2YR652YD2VLRIDAVCNFSM6AAAAABZD5RKKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONBQHE3DMMRUGY . You are receiving this because you commented.Message ID: @.***>

histed avatar Mar 20 '25 16:03 histed

Same problem here. It seems the problem is in uv-cache. When I pixi clean, remove uv-cache and pixi install again, the proper version is installed.

fsteinmetz avatar Mar 21 '25 17:03 fsteinmetz

thanks @histed and @fsteinmetz for the input. I will try to make another reproducer and will let you know

nichtmacho avatar Mar 21 '25 17:03 nichtmacho

I may have some progress on this issue: I have noticed a difference with respect to this bug, regarding two styles of identifying a commit in pixi.lock:

A) - pypi: git+https://github.com/tqdm/tqdm.git?rev=c66458d9ac2ad096937406f79d105af891cee6e7#c66458d9ac2ad096937406f79d105af891cee6e7

B) - pypi: git+https://github.com/tqdm/tqdm.git#c66458d9ac2ad096937406f79d105af891cee6e7

Please find a minimal example here :

git clone https://github.com/fsteinmetz/bugreport

There are two projects A and B, which have the same pyproject.toml (dépends on tqdm) but different pixi.lock. In each of them, run the following commands:

  • pixi run test to check that the hashes are identical between the pixi lock and the actual installed version
  • pixi update tqdm to update the tqdm package to its latest version
  • pixi run test to check again the consistency.

We see that in project B, using style B, the module is not updated correctly:

✨ Pixi task (test): pixi ls tqdm ; pixi run uv pip freeze | grep tqdm
Package  Version  Build  Size  Kind  Source
tqdm     4.67.1                pypi  git+https://github.com/tqdm/tqdm.git#0ed5d7f18fa3153834cbac0aa57e8092b217cc16
Using Python 3.13.2 environment at: /home/francois/.cache/rattler/cache/envs/bugreport-12657873535072794324/envs/default
tqdm @ git+https://github.com/tqdm/tqdm@c66458d9ac2ad096937406f79d105af891cee6e7

It requires a pixi clean to be properly updated upon reinstall. In project A, using style A, the module is updated correctly: the pixi hash matches the uv pip hash (but using style B after the update).

fsteinmetz avatar Mar 23 '25 21:03 fsteinmetz

hey all! I pinpointed the problem in pixi. It may happen when we think that the installed version already matches the locked one ( in our case, from git vcs ) - so we don't update the environment ( more technical details: we skip commit from #e213c fragment )

will let you know when the fix is ready

nichtmacho avatar Mar 24 '25 17:03 nichtmacho