Skip to content

not working locally without git remotes #19

Closed
@f-fuchs

Description

@f-fuchs

Hey,

I tried installing codeflash locally but the init command crashes. Is a git remote required even for local use?

[?] Where are your tests located? (If you don't have any tests yet, I can create an empty tests: directory for you):
 > tests
   enter a custom directory…

[?] Which test framework do you use? (seems to me you're using pytest):
 > pytest
   unittest

[?] Which code formatter do you use?:
   black
 > ruff
   other
   don't use a formatter

Traceback (most recent call last):
  File "/home/fuchsfa/.cache/uv/archive-v0/NnDh5838bhYDt1CJliMNv/bin/codeflash", line 10, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/fuchsfa/.cache/uv/archive-v0/NnDh5838bhYDt1CJliMNv/lib/python3.12/site-packages/codeflash/main.py", line 30, in main
    args.func()
  File "/home/fuchsfa/.cache/uv/archive-v0/NnDh5838bhYDt1CJliMNv/lib/python3.12/site-packages/codeflash/cli_cmds/cmd_init.py", line 70, in init_codeflash
    setup_info: SetupInfo = collect_setup_info()
                            ^^^^^^^^^^^^^^^^^^^^
  File "/home/fuchsfa/.cache/uv/archive-v0/NnDh5838bhYDt1CJliMNv/lib/python3.12/site-packages/codeflash/cli_cmds/cmd_init.py", line 235, in collect_setup_info
    git_remote = git_remotes[0]
                 ~~~~~~~~~~~^^^
IndexError: list index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions