Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Amend syntax in conda-meta/history to prevent conda.history.History.parse() error #1117

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

jaimergp
Copy link
Contributor

@jaimergp jaimergp commented Apr 4, 2024

#995 introduced a Pixi-generated conda-meta/history. Sadly, # is a special character in the history file, which ends up breaking the conda.history.History.parse() function:

$ python -c "from conda.history import History as H; print(H('.pixi/envs/default').parse())"                  
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/jrodriguez/devel/conda-pip/.pixi/envs/default/lib/python3.10/site-packages/conda/history.py", line 138, in parse
    res[-1][2].append(line)
IndexError: list index out of range

// does work without issues.

# is a special character in the history file.
@jaimergp jaimergp changed the title Fix conda.history.History.parse() errors fix: Amend syntax in conda-meta/history to prevent conda.history.History.parse() error Apr 4, 2024
@wolfv wolfv enabled auto-merge (squash) April 4, 2024 15:58
@wolfv
Copy link
Member

wolfv commented Apr 4, 2024

Thanks!

@wolfv wolfv merged commit 6331cc9 into prefix-dev:main Apr 4, 2024
24 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants