Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • GitLab CI Templates GitLab CI Templates
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • TPA
  • GitLab CI TemplatesGitLab CI Templates
  • Merge requests
  • !12

Use custom --buildstate-path for lektor builds

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Jérôme Charaoui requested to merge lektor-buildpath into main Nov 11, 2021
  • Overview 1
  • Commits 2
  • Pipelines 2
  • Changes 1

The buildstate file Lektor creates when building the site is placed inside a .lektor directory inside the output path. However, this buildstate is useless in artifacts and can become quite large (1.7G for the blog project). The --buildstate-path switch allows us to use a different path to store it. Using cache for this makes sense as subsequent builds may refer to it, although ideally we'd also have the actual build artifacts and not just the buildstate.

This replaces the .cache/lektor/builds/ cache path: it does not seem to be actually used in the build process as shown by this error message in the CI builds of Lektor:

WARNING: .cache/lektor/builds/: no matching files
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: lektor-buildpath