Skip to content

Get Ghostty on the Zig Package Manager #16672

Closed

Description

@mitchellh

Zig Version

0.11.0-dev.4404+4f6013bf5

Steps to Reproduce and Observed Behavior

You can close this if you want. I thought it might be useful to have a tracking issue of the issues that have blocked me from getting my terminal emulator using the Zig package manager in 0.11. It might be a good target for 0.11.1 (I mean, I'd love that).

I've just completed getting as far as I can. The good news is its... pretty close? Ghostty has dozens of dependencies with multiple layers of transitive shared dependencies so its a good stress test. I'm impressed I got as far as I did. And I'm very sorry I didn't do more testing before 0.11.0 (congrats!).

Update 10/1/2023: Ghostty is now able to use the package manager as of 0.12.0-dev.694+937e8cb70! See the comment for more information. This list now has additional issues we've run into but have found workarounds.

Full Blockers

These are actively preventing me from being able to use the package manager.

Major Issues

These are issues that have really nasty workarounds and that I hit very regularly.

Minor

These are issues that are easy to work around but just muck up the experience.

The Zig core team should all have access to Ghostty's source. If you don't have access let me know. Happy to provide any more details on Discord.

Expected Behavior

Down with all Git submodules.

Activity

  1. added
    bug
    on Aug 4, 2023
  2. added this to the 0.12.0 milestone on Aug 5, 2023
  3. added
    use case
    and removed
    bug
    on Sep 29, 2023
  4. mitchellh commented on Oct 2, 2023

    @mitchellh
    ContributorAuthor

    Update, as of ghostty-org/ghostty#603 (for those who have access to the repo), Ghostty is now able to use the package manager with 0.12.0-dev.694+937e8cb70!

    We can't remove all of our git submodules yet due to #16678. And even once that is fixed, we're starting to work on Windows so we'll need #14597 so that deps with symlinks are skipped on Windows.

    This can potentially be closed now unless you want to keep this open until we have a workaround-free setup @andrewrk.

  5. andrewrk commented on Oct 2, 2023

    @andrewrk
    Member

    I'm happy to keep this open if there is a checkbox with an issue number for every workaround in your setup

  6. mitchellh commented on Oct 2, 2023

    @mitchellh
    ContributorAuthor

    Got it, the root comment is up to date on all the issues, with checkboxes.

  7. mitchellh commented on Oct 7, 2023

    @mitchellh
    ContributorAuthor

    Update: Ghostty no longer has to special-case tar files with symlinks, including the macOS SDK!

    The only issue now is that on Windows we want to filter out unused dependencies. This issue is tracked as a checkbox item in the root issue.

  8. mitchellh commented on Oct 10, 2023

    @mitchellh
    ContributorAuthor

    Added #17472. We've had the Zig package manager in "production" for only a week and I find myself having to restart failed jobs a few times per day. So far all of these failed jobs have been temporary network issues, not the result of real outages.

  9. andrewrk commented on Jan 9, 2024

    @andrewrk
    Member

    This issue was useful while figuring out what issues to include in the 0.12.0 milestone. Now that the release is approaching, I'm going to close this and declare it a success. All the follow-up issues are tracked and assigned appropriate milestones.

  10. deleted a comment from itzmesonic on Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    use case

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions