Skip to content

OSError: [Errno 22] Invalid argument #18

Description

@vectro

Seeing this in CI:

.venv/lib/python3.9/site-packages/gitinfo/gitinfo.py:120: in get_git_info
    return get_git_info_dir(gitdir)
.venv/lib/python3.9/site-packages/gitinfo/gitinfo.py:98: in get_git_info_dir
    r = get_pack_info(idx_file, gi)
.venv/lib/python3.9/site-packages/gitinfo/pack_reader.py:176: in get_pack_info
    data = get_object(fin, pack_idx)
.venv/lib/python3.9/site-packages/gitinfo/pack_reader.py:149: in get_object
    data, r = decode_delta(fin, data, delta_res, pack_idx, offset)
.venv/lib/python3.9/site-packages/gitinfo/pack_reader.py:104: in decode_delta
    oo = get_object(fin, pack_idx - offset)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
fin = <_io.BufferedReader name='[redacted].pack'>
pack_idx = -14268
    def get_object(fin, pack_idx):
>       fin.seek(pack_idx, 0)
E       OSError: [Errno 22] Invalid argument

This started happening all of a sudden, presumably because git moved some needed object into a pack? Now it is happening consistently.

This is observed in a private repo using python-git-info 0.8.3 and Python 3.9.6.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions