Skip to content

[BUG] Cannot build with git-lfs #849

@wold9168

Description

@wold9168

Describe the bug
This package cannot be built in a system installed git-lfs due to checksum mismatch.

Setup
Please complete the following information along with version numbers, if applicable.

  • OS: Fedora (Irrelevant to the question.)
  • Shell: zsh (Irrelevant to the question.)
  • Terminal Emulator: kitty (Irrelevant to the question.)
  • Terminal Multiplexer: None (Irrelevant to the question.)
  • Locale: en_GB.UTF-8 (Irrelevant to the question.)

To Reproduce
Steps to reproduce the behavior:

  1. Install go, git, and git-lfs
  2. Clone this repo.
  3. Try to run go mod tidy
  4. See error

Source Code

docker run -it --rm fedora:42
dnf install -y go git git-lfs
git clone https://github.com/charmbracelet/glow
cd glow
go mod tidy

Expected behavior
go mod tidy runs successfully.

Screenshots

Image

Additional context
None


charmbracelet/x#651

I reported the existence of this build issue in this issue, which appears to be a problem with the Go toolchain itself.
For the work in this repository, we need to add an environment variable GIT_LFS_SKIP_SMUDGE=1 before the go build command in the README.md.
I'm not very clear on how go.sum works, but we probably can't apply multiple checksums to the same package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions