Skip to content

Since 1.12.x gitea can no more build with several options. #12136

Closed
@ecsgh

Description

@ecsgh
  • Gitea version (or commit ref): 1.12.1
  • Git version: 2.26.2
  • Go version: 1.14
  • nodejversion: 10.21.0
  • npm version: 6.14.4
  • Operating system: openSUSE Leap 15.2
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

I have try several options to build.
1.) within rpm.spec
First problem here are the external sources wich can not downloaded through build server.
But this problem are exists in 1.11.x also and can fix this when i download modules from console myself and than generate extra node_modules.tar.gz source file for rpm.spec. And i can build for 1.11x.
But not build for 1.12.x since fomantic is needed.
I can not download and build fomantic local:

First there a deprecated issues:
gitea-1.12.1/webpack.config.js
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated [email protected]: Removed event-stream from gulp-header
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated

Then the error output:

[email protected] install <my_directory>/gitea-1.12.1/node_modules/fomantic-ui
gulp install

sh: gulp: Kommando nicht gefunden.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":"<8.10.0"} (current: {"node":"10.21.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/watchpack/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! [email protected] install: gulp install
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

2.) build with source from github:

git clone https://github.com/go-gitea/gitea.git
git checkout v1.12.1
TAGS="bindata" make build

Than this is the error output:

npm install --no-save

[email protected] install /home/eric/osc/home:ecsos:server/gitea/test/github/gitea/node_modules/fomantic-ui
gulp install

sh: gulp: Kommando nicht gefunden.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! [email protected] install: gulp install
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/eric/.npm/_logs/2020-07-04T09_41_38_785Z-debug.log
make: *** [Makefile:581: node_modules] Fehler 1

3.) Trying source from gitea.io:
Using gitea-src-1.12.1.tar.gz

TAGS="bindata" make build

This is the error output:

go: inconsistent vendoring in <my_directory>:
src.techknowlogick.com/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt

run 'go mod vendor' to sync, or use -mod=mod or -mod=readonly to ignore the vendor directory
CC= GOOS= GOARCH= go generate -mod=vendor -tags 'bindata'
go: inconsistent vendoring in <my_directory>:
src.techknowlogick.com/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt

run 'go mod vendor' to sync, or use -mod=mod or -mod=readonly to ignore the vendor directory
make: *** [Makefile:518: generate] Fehler 1

After i run go mod vendor i can build.
But think the source is not up to date, not in sync with needed things.

So, all three options does not run.

...

Screenshots

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions