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

Wally server consistently crashes due to "corrupted loose reference file" #178

Open
NobleDraconian opened this issue Nov 8, 2023 · 1 comment

Comments

@NobleDraconian
Copy link

NobleDraconian commented Nov 8, 2023

Currently, as of v0.3.2, the wally server consistently crashes when attempting to point it to a github repository for its index.

To reproduce:

  1. Create a fresh blank repository through github's web UI, name it wally-index
  2. Compile the wally server binary via cargo build --release.
  3. Create the environment variables:
export WALLY_INDEX_URL="https://github.com/scope/wally-index"
export WALLY_AUTH="{type=api-key,value=herebedragons}"
export WALLY_GITHUB_TOKEN="tokenhere"
export WALLY_STORAGE="{type=local}"
  1. Run the wally server (./wally-registry-backend)
  2. Observe that wally crashes because of a "corrupted loose reference file", despite the index repository being freshly created on github and not touched by any local machines:
    image
@NobleDraconian
Copy link
Author

This seems to occur if the index repository has a master branch, instead of a main branch. Renaming master to main fixes the issue.

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

No branches or pull requests

1 participant