GithubHelp home page GithubHelp logo

Builds are failing about 512kb.club HOT 7 CLOSED

kevquirk avatar kevquirk commented on July 22, 2024
Builds are failing

from 512kb.club.

Comments (7)

garritfra avatar garritfra commented on July 22, 2024 1

Nope, no luck. 😕 CI is still failing on that revert PR.

from 512kb.club.

kevquirk avatar kevquirk commented on July 22, 2024 1

Yeah, I bumped ruby to 3.1.3 locally to see if I could get builds working, but it's still failing. I haven't had time to investigate further.

from 512kb.club.

zwbetz-gh avatar zwbetz-gh commented on July 22, 2024 1

This was an interesting one to track down 😅 .

First, I was able to reproduce it locally with this Dockerfile:

FROM ruby:3.3.0-bookworm
WORKDIR /usr/src/app
COPY Gemfile Gemfile.lock ./
RUN bundle update --bundler
RUN bundle install
COPY . .
RUN ruby --version \
  && bundle --version \
  && jekyll --version
EXPOSE 4000
CMD [ "bundle", "exec", "jekyll", "serve", "--host", "0.0.0.0" ]
# To hit local server, go to http://127.0.0.1:4000/

And these shell commands:

docker build \
--progress plain \
-t "512kb-club" \
.

docker run \
--rm \
-p "4000:4000" \
--name "512kb-club" \
"512kb-club"

After some googling, this stack overflow answer was the only hint I found.

I searched the codebase for YAML.load_file and turns out that _plugins/rss_feed.rb was using it.

The fix was to change this line:

websites = YAML.load_file(File.join(site.source, '_data', 'sites.yml'))

To be:

websites = YAML.load_file(
  File.join(site.source, '_data', 'sites.yml'),
  permitted_classes: [Date]
)

from 512kb.club.

garritfra avatar garritfra commented on July 22, 2024

Observation: Could be linked to this Dependabot PR I recently merged: #1420

Some people claim that this error surfaced after a ruby update. The release notes in that PR say something about a bump of the ruby version. I'll try to somehow revert it on my phone to see if that fixes it.

from 512kb.club.

garritfra avatar garritfra commented on July 22, 2024

Wow! Thanks for hunting this one down. Do you have a minute to open a PR? I'm currently at the airport without a proper computing device. 😅

Otherwise I (or @kevquirk?) can do it later. Thanks again @zwbetz-gh!

from 512kb.club.

kevquirk avatar kevquirk commented on July 22, 2024

That worked a treat. Thanks @zwbetz-gh 🎉

from 512kb.club.

zwbetz-gh avatar zwbetz-gh commented on July 22, 2024

Nice! Thank y'all for this cool project 👍

from 512kb.club.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.