#68812 closed defect (fixed)

helix @23.10: fatal: unable to access 'https://git.sr.ht/~sfr/tree-sitter-gemini/': The requested URL returned error: 403

Reported by: carlocaione (Carlo Caione) Owned by: herbygillot (Herby Gillot)
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc:
Port: helix

Description

The helix build fails with:

:info:build   Failure 1/1: gemini Git command failed.
2575 :info:build   Stdout:
2576 :info:build   Stderr: fatal: unable to access 'https://git.sr.ht/~sfr/tree-sitter-gemini/': The requested URL returned error: 403

Attachments (1)

main.log (751.9 KB) - added by carlocaione (Carlo Caione) 11 months ago.

Download all attachments as: .zip

Change History (7)

Changed 11 months ago by carlocaione (Carlo Caione)

Attachment: main.log added

comment:1 Changed 11 months ago by carlocaione (Carlo Caione)

comment:2 Changed 11 months ago by carlocaione (Carlo Caione)

Keywords: haspatch added

comment:3 Changed 11 months ago by jmroot (Joshua Root)

Owner: set to herbygillot
Status: newassigned

comment:4 Changed 10 months ago by ryandesign (Ryan Carsten Schmidt)

Summary: helix fatal errorhelix @23.10: fatal: unable to access 'https://git.sr.ht/~sfr/tree-sitter-gemini/': The requested URL returned error: 403

This is one of those demonstrations of why ports should use distfiles, not fetch using git.

comment:5 in reply to:  4 Changed 10 months ago by herbygillot (Herby Gillot)

Replying to ryandesign:

This is one of those demonstrations of why ports should use distfiles, not fetch using git.

We would have run into this issue regardless.

helix's build process is running an external build step, which calls an external script that downloads a list of grammars defined by a config file custom and specific to the project, languages.toml.

Even if this port were using vendored crates, which is how we distfile Rust ports, the build process would still fail because the URL in languages.toml is no longer valid. The fix that @carlocaione is referencing corrects that very file.

This port has been building from Git because earlier versions of it had a strong reliance on Git for the build process, especially Git submodules.

It looks like that's no longer the case now, so I've switched helix over to building from the source archive, in addition to fixing this issue:

https://github.com/macports/macports-ports/pull/21659

comment:6 Changed 10 months ago by herbygillot (Herby Gillot)

Resolution: fixed
Status: assignedclosed

In f2e01f3650b62ca440ca53bf91492f8f4f81846d/macports-ports (master):

helix: fix broken URL for 'gemini' grammar

  • build from source archive, no longer fetch source using git

Closes: #68812

Note: See TracTickets for help on using tickets.