Skip to content

Jekyll exits with 0 when a build fails #5257

@jleclanche

Description

@jleclanche

So I created a post something like the following:

---
layout: post
title: Something: Something else

---
...

jekyll build fails when parsing the title. However, it fails with exit code 0.

      Generating... 
             Error: could not read file ...: (<unknown>): mapping values are not allowed in this context at line 3 column 21
                    done in 1.752 seconds.

This is really bad behaviour as it means, for example, a CI build will pass despite it failing. Leaves the whole thing in a broken state.

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