-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Since 1.12.x gitea can no more build with several options. #12136
Comments
Vendoring issue should be fixed next 1.12 release with df13fc8. As for npm, I'm not sure. It's coming from fomantic's install script https://github.com/fomantic/Fomantic-UI/blob/master/package.json#L27 and it should use gulp from the dependencies but seems to try a global version. Does manually running |
You can download source with precompiled frontend from dl.gitea.io and just use |
No i can't. There error is:go: inconsistent vendoring in <my_dir>: run 'go mod vendor' to sync, or use -mod=mod or -mod=readonly to ignore the vendor directory run 'go mod vendor' to sync, or use -mod=mod or -mod=readonly to ignore the vendor directory Only after "go mod vendor". |
As I said, |
Yes. And my answer was not for you. It was for lafriks. I have now do npm install --no-save --ignore-scripts and then TAGS="bindata" make build First Second
Now i answer "yes" and the error was:
The webpack-cli was in die node_modules from gitea. But when i see right, install will use it from homedir? Another question: |
The |
The bug persists. But I wanted to announce the status and that I have now managed to create the new gitea version 12.2 in the BuildServer. On the console of the PC:
Then the sources of gitea github and the created node_modules tarfile are inserted in rpm.spec.
But should this be the solution? |
All that should be needed to build from source is download https://dl.gitea.io/gitea/1.12.2/gitea-src-1.12.2.tar.gz, decompress, and run make backend. That is the solution to building without npm etc... as we provide it |
Possible. I am also so sure that I really only get the original nodejs modules. I don't understand the meaning of all the nodejs modules anyway. |
@ecsgh it's not clear from your last comment, but does If it does work and produces a working Gitea then I think we can close this issue. |
|
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions. |
[x]
):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 core-js@2.6.11: 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 request@2.88.2: request has been deprecated, see request/request#3142
npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated core-js@1.2.7: 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 gulp-header@1.8.12: Removed event-stream from gulp-header
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
Then the error output:
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 fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN notsup Unsupported engine for watchpack-chokidar2@2.0.0: 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: watchpack-chokidar2@2.0.0
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 fsevents@2.1.3: 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! fomantic-ui@2.8.4 install:
gulp install
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the fomantic-ui@2.8.4 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:
Than this is the error output:
npm install --no-save
sh: gulp: Kommando nicht gefunden.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: 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! fomantic-ui@2.8.4 install:
gulp install
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the fomantic-ui@2.8.4 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
This is the error output:
go: inconsistent vendoring in <my_directory>:
src.techknowlogick.com/xgo@v0.0.0-20200602060627-a09175ea9056: 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/xgo@v0.0.0-20200602060627-a09175ea9056: 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
The text was updated successfully, but these errors were encountered: