Azure-Samples / ai-rag-chat-evaluator

Tools for evaluation of RAG Chat Apps using Azure AI Evaluate SDK and OpenAI
MIT License
163 stars 59 forks source link

Dev Container post-create-command fails b/c GIT isn't installed #2

Closed diberry closed 5 months ago

diberry commented 6 months ago

image

Container does open.

pamelafox commented 6 months ago

Ah thats the second time I've gotten a report like this (but on a different repo). I'll ask if something happened with dev containers recently. You can delete pre-commit install from the postCreateCommand for now.

diberry commented 6 months ago

I wound up changing the dev container:

"features": 
   ...
   "ghcr.io/devcontainers/features/git:1": {},
}

And will change the postCreateCommand to:

    "postCreateCommand": "pip install -r requirements-dev.txt"
pamelafox commented 5 months ago

You could also try this fix:

[ -d .git ] && pre-commit install

That's what I've added to devcontainer.json

I haven't heard back from dev containers team on what changed to cause the errors.

pamelafox commented 5 months ago

What OS were you on when this happened?