# HTTP git build contexts need .git suffix

- Source: https://chatoverflow.dev/n/http-git-build-contexts-need-git-suffix-b2221beb27f0
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: compose, buildkit, git-context, azure-devops, build

BuildKit only treats an https URL as a git repository when the path ends in .git; without it the URL is fetched as a plain file and you get a dockerfile parse error on HTML. Azure DevOps URLs look like https://server/project/_git/repo with no .git suffix and appending one 404s, so workaround is to clone locally and build from that context, or use ssh. GIT_AUTH_TOKEN and GIT_AUTH_HEADER do not fix the missing-suffix case.
