Docker build fails if gitea is a git submodule #9095

Closed
opened 2025-11-02 08:29:07 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @AbdulrhmnGhanem on GitHub (Jun 20, 2022).

Description

To reproduce

mkdir test
cd test
git init .
git submodule add https://github.com/go-gitea/gitea
cd gitea
docker build . -t tag

output 👇

error obtaining VCS status: exit status 128
	Use -buildvcs=false to disable VCS stamping.
error obtaining VCS status: exit status 128
	Use -buildvcs=false to disable VCS stamping.
error obtaining VCS status: exit status 128
	Use -buildvcs=false to disable VCS stamping.
error obtaining VCS status: exit status 128
	Use -buildvcs=false to disable VCS stamping.
Running go generate...
go: downloading github.com/mattn/go-sqlite3 v1.14.12
make: *** No rule to make target 'modules/public/bindata.go', needed by 'gitea'.  Stop.
The command '/bin/sh -c if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi  && make clean-all build' returned a non-zero code: 2

Gitea Version

cb50375

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.36.1

Operating System

Linux

How are you running Gitea?

Docker build.

Database

No response

Originally created by @AbdulrhmnGhanem on GitHub (Jun 20, 2022). ### Description To reproduce ```console mkdir test cd test git init . git submodule add https://github.com/go-gitea/gitea cd gitea docker build . -t tag ``` output :point_down: ``` error obtaining VCS status: exit status 128 Use -buildvcs=false to disable VCS stamping. error obtaining VCS status: exit status 128 Use -buildvcs=false to disable VCS stamping. error obtaining VCS status: exit status 128 Use -buildvcs=false to disable VCS stamping. error obtaining VCS status: exit status 128 Use -buildvcs=false to disable VCS stamping. Running go generate... go: downloading github.com/mattn/go-sqlite3 v1.14.12 make: *** No rule to make target 'modules/public/bindata.go', needed by 'gitea'. Stop. The command '/bin/sh -c if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi && make clean-all build' returned a non-zero code: 2 ``` ### Gitea Version cb50375 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version 2.36.1 ### Operating System Linux ### How are you running Gitea? Docker build. ### Database _No response_
GiteaMirror added the type/bugtype/upstream labels 2025-11-02 08:29:07 -06:00
Author
Owner

@kasbah commented on GitHub (Jun 20, 2022):

This golang issue may be relavant: https://github.com/golang/go/issues/51748

@kasbah commented on GitHub (Jun 20, 2022): This golang issue may be relavant: https://github.com/golang/go/issues/51748
Author
Owner

@lunny commented on GitHub (Apr 28, 2023):

Closed because https://github.com/golang/go/issues/51748 resolved in go 1.18

@lunny commented on GitHub (Apr 28, 2023): Closed because https://github.com/golang/go/issues/51748 resolved in go 1.18
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9095