CloudSecurityAlliance / gsd-tools

Global Security Database Tools
https://gsd.id
Apache License 2.0
41 stars 20 forks source link

build error in jekyll website #115

Closed kurtseifried closed 1 year ago

kurtseifried commented 1 year ago

@enck I did the default jekyll handler in cloudflare pages,and it spat this out:

2023-02-01T23:26:40.496783Z Cloning repository... 2023-02-01T23:26:43.770209Z From https://github.com/cloudsecurityalliance/gsd-tools 2023-02-01T23:26:43.770881Z * branch bfb30d0261dfe4338dd46f490997bedd02eb1917 -> FETCH_HEAD 2023-02-01T23:26:43.771099Z 2023-02-01T23:26:44.25026Z HEAD is now at bfb30d0 Merge pull request #93 from oswalpalash/merge-project-tools 2023-02-01T23:26:44.251036Z 2023-02-01T23:26:44.39709Z
2023-02-01T23:26:44.427637Z Success: Finished cloning repository files 2023-02-01T23:26:45.175018Z Installing dependencies 2023-02-01T23:26:45.188524Z Python version set to 2.7 2023-02-01T23:26:48.847221Z v12.18.0 is already installed. 2023-02-01T23:26:50.100308Z Now using node v12.18.0 (npm v6.14.4) 2023-02-01T23:26:50.366967Z Started restoring cached build plugins 2023-02-01T23:26:50.382403Z Finished restoring cached build plugins 2023-02-01T23:26:50.949994Z Attempting ruby version 2.7.1, read from environment 2023-02-01T23:26:54.679316Z Using ruby version 2.7.1 2023-02-01T23:26:55.04601Z Using PHP version 5.6 2023-02-01T23:26:55.046932Z Started restoring cached ruby gems 2023-02-01T23:26:55.064186Z Finished restoring cached ruby gems 2023-02-01T23:26:55.065453Z Installing gem bundle 2023-02-01T23:26:55.344195Z [DEPRECATED] The --path flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use bundle config set path '/opt/buildhome/cache/bundle', and stop using this flag 2023-02-01T23:26:55.493793Z [DEPRECATED] The --binstubs option will be removed in favor of bundle binstubs 2023-02-01T23:26:55.626898Z The dependency tzinfo (>= 1, < 3) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32, java. To add those platforms to the bundle, run bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32 java. 2023-02-01T23:26:55.627211Z The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32, java. To add those platforms to the bundle, run bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32 java. 2023-02-01T23:26:55.627363Z The dependency wdm (~> 0.1.1) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32. 2023-02-01T23:26:55.627494Z The dependency http_parser.rb (~> 0.6.0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run bundle lock --add-platform java. 2023-02-01T23:26:57.898377Z Fetching gem metadata from https://rubygems.org/............ 2023-02-01T23:26:58.015672Z Fetching gem metadata from https://rubygems.org/. 2023-02-01T23:26:58.083109Z Resolving dependencies... 2023-02-01T23:26:58.121553Z sass-embedded-1.57.1-x86_64-linux-gnu requires rubygems version >= 3.3.22, which 2023-02-01T23:26:58.121847Z is incompatible with the current version, 3.1.2 2023-02-01T23:26:58.157761Z Error during gem install 2023-02-01T23:26:58.164279Z Failed: build command exited with code: 1 2023-02-01T23:26:59.048184Z Failed: an internal error occurred

kurtseifried commented 1 year ago

Ok yeah that's the repo, it doesn't matter if I specify website or website/, same error.

kurtseifried commented 1 year ago

Repository:

cloudsecurityalliance/gsd-tools Branch: main bfb30d0 Merge pull request #93 from oswalpalash/merge-project-tools Merge gsd-project with gsd-tools Status: Failed 4:32PM February 1, 2023 Duration: 19s Build settings Build command: jekyll build Build output directory: /_site Root directory: /website Environment variables: None

enck commented 1 year ago

Hrm ... the error message appears to be having an issue resolving dependencies. I probably should have checked in the Gemfile.lock to pin them. I just did a pull request (above) to test.

Based on the automated Cloudflare build for the branch, it appears to have worked.