Skip to content

no check if unzip is installed #2301

Closed
Closed

Description

@iislamgom3a
Image

Activity

  1. github-actions commented on Aug 29, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. changed the title [-]no check if unzip is insalled[/-] [+]no check if unzip is installed[/+] on Aug 29, 2025
  3. vickywane commented on Sep 22, 2025

    @vickywane

    @rekram1-node I'd love to work on this.

    Should unzip be automatically installed if not found?

    Cc: @thdxr

  4. rekram1-node commented on Sep 22, 2025

    @rekram1-node
    Collaborator

    @vickywane Instead of automatically installing unzip, I'm thinking we should fall back to using tar when unzip isn't available.

  5. vickywane commented on Sep 22, 2025

    @vickywane

    Okay, that sounds like a good idea.

    I can work on a PR to implement that.

  6. vickywane commented on Oct 12, 2025

    @vickywane

    @rekram1-node I've fixed this in this PR

  7. rekram1-node commented on Oct 12, 2025

    @rekram1-node
    Collaborator

    @vickywane btw your fix doesn't fix this issue unfortunately

    This is an issue w/ the install script, I was saying it should fall back to tar (if it doesn't, maybe this was fixed since issue was made): https://github.com/sst/opencode/blob/afb406c5ff4fddfa18239b290a5a3f568bf0ed63/install#L97

    For what you did in your PR that is actually really good BUT we need to actually do a slightly different solution for windows compat

    We actually have a separate issue tracking what you tried to fix: #967

    We want to replace all unzip invocations in lsp install with zip js

  8. vickywane commented on Oct 12, 2025

    @vickywane

    Oh, I see @rekram1-node

    I just went through the link issue, and I don't think it's fixed. ( The PR was closed.)

    If the expectation is to use zip.js, would it be safe to assume it'll be used for both Windows and Unix platforms? Would you also like me to continue with the PR to achieve this?

  9. rekram1-node commented on Oct 12, 2025

    @rekram1-node
    Collaborator

    yes @vickywane that pr was closed because the llm didnt understand the goal haha

    And yes using zipjs is compatible on both platforms

    Btw dont feel pressured to open a pr but if you are happy to ill give some guidance:

    • we already use zipjs in a few other places
    • when using zipjs with the lsps be careful to preserve symlinks and things
    • should be pretty easy to test the changes:

    clear the bin dir that lsps are installed in then:
    bun run dev debug lsp diagnostics

    ^ should install lsp if not installed

  10. vickywane commented on Oct 12, 2025

    @vickywane

    Haha

    I'm happy to give it a shot!

    Will read through the existing usages of zip.js

    (Thanks for the suoerfast responses btw)

  11. rekram1-node commented on Oct 12, 2025

    @rekram1-node
    Collaborator

    ofc!

  12. rekram1-node commented on Oct 25, 2025

    @rekram1-node
    Collaborator

    @vickywane no rush are you still wanting to tackle this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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