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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build fails if gitea is a git submodule #20055

Closed
AbdulrhmnGhanem opened this issue Jun 20, 2022 · 2 comments
Closed

Docker build fails if gitea is a git submodule #20055

AbdulrhmnGhanem opened this issue Jun 20, 2022 · 2 comments
Labels
type/bug type/upstream This is an issue in one of Gitea's dependencies and should be reported there

Comments

@AbdulrhmnGhanem
Copy link
Contributor

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

@AbdulrhmnGhanem AbdulrhmnGhanem changed the title Docker build fails if gitea is submodule Docker build fails if gitea is a git submodule Jun 20, 2022
@kasbah
Copy link

kasbah commented Jun 20, 2022

This golang issue may be relavant: golang/go#51748

AbdulrhmnGhanem added a commit to kitspace/gitea that referenced this issue Jun 20, 2022
AbdulrhmnGhanem added a commit to kitspace/gitea that referenced this issue Aug 24, 2022
@lunny
Copy link
Member

lunny commented Apr 28, 2023

Closed because golang/go#51748 resolved in go 1.18

@lunny lunny closed this as completed Apr 28, 2023
@lunny lunny added the type/upstream This is an issue in one of Gitea's dependencies and should be reported there label Apr 28, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/bug type/upstream This is an issue in one of Gitea's dependencies and should be reported there
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants