Skip to content

Evaluate use of pkg to make single-binary server #39

Closed

Description

@sr229

pkg is a application that compiles the project into a single executable, which we currently do, but pkg seems to be flexible as you can provide runtime version and such with the sacrifice of requiring some of the requires to be __dirname'd

[Zeit pkg repo]

Activity

  1. kylecarbs commented on Mar 6, 2019

    @kylecarbs
    Member

    We've attempted to use pkg. Using native modules is a large problem we've found, along with differentiating filesystems between inside and outside the binary.

    Using nexe has been alright, but our usage requires a lot of jankiness. Optimally, we'll eventually create our own project to compile the binary.

    We're able to provide the runtime version with nexe.

  2. sr229 commented on Mar 7, 2019

    @sr229
    ContributorAuthor

    have you tried to open this to Zeit's devs about the problem with native modules @kylecarbs?

  3. kylecarbs commented on Mar 7, 2019

    @kylecarbs
    Member

    Seems its an open feature request: vercel/pkg#329

  4. aparatext commented on Apr 26, 2022

    @aparatext

    The feature request has been fulfilled. Can anyone investigate if it's possible now?

  5. jsjoeio commented on Apr 26, 2022

    @jsjoeio
    Contributor

    I wasn't around when this was being evaluated. @walking-octopus what benefits do you see in us using pkg?

  6. aparatext commented on Apr 26, 2022

    @aparatext

    I feel it could be smaller or more convenient than an existing archive. If this was found important enough to hack around the limitations the last time, why not try again?

  7. jsjoeio commented on Apr 26, 2022

    @jsjoeio
    Contributor

    Interesting! Smaller is definitely appealing. I don't know the full history around some of the hacks or limitations from the early years of the project.

    @code-asher do you have any context? Is this worth considering?

  8. code-asher commented on Apr 27, 2022

    @code-asher
    Member
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions