[GH-ISSUE #143] Can the release zip not contain directories? #63

Closed
opened 2026-06-08 11:25:31 +03:00 by zhus · 5 comments
Owner

Originally created by @briandipalma on GitHub (May 18, 2021).
Original GitHub issue: https://github.com/bootandy/dust/issues/143

The easiest way to install dust with Ansible is using unarchive and unzipping to a PATH directory.

 - name: Install dust
   unarchive:
     src: https://github.com/bootandy/dust/releases/download/v0.5.4/dust-v0.5.4-x86_64-unknown-linux-gnu.tar.gz
     dest: /usr/local/bin
     remote_src: yes
   tags: dust

Unfortunately the zip contains a directory instead of the dust executable at the top level of the zip. Could the release zips be flattened in future releases?

Originally created by @briandipalma on GitHub (May 18, 2021). Original GitHub issue: https://github.com/bootandy/dust/issues/143 The easiest way to install dust with Ansible is using unarchive and unzipping to a PATH directory. ``` - name: Install dust unarchive: src: https://github.com/bootandy/dust/releases/download/v0.5.4/dust-v0.5.4-x86_64-unknown-linux-gnu.tar.gz dest: /usr/local/bin remote_src: yes tags: dust ``` Unfortunately the zip contains a directory instead of the dust executable at the top level of the zip. Could the release zips be flattened in future releases?
zhus closed this issue 2026-06-08 11:25:31 +03:00
Author
Owner

@briandipalma commented on GitHub (May 18, 2021):

For anyone else who has this issue this is what I did to get just the executable

- name: Install dust
  unarchive:
    src: https://github.com/bootandy/dust/releases/download/v0.5.4/dust-v0.5.4-x86_64-unknown-linux-gnu.tar.gz
    dest: /usr/local/bin
    remote_src: yes
    extra_opts:
      # The dust zip contains a directory with the executable and some md files
      # We want to strip the directory and only take the executable
      - "--strip-components=1"
      - "dust-v0.5.4-x86_64-unknown-linux-gnu/dust"
  tags: dust
<!-- gh-comment-id:843529522 --> @briandipalma commented on GitHub (May 18, 2021): For anyone else who has this issue this is what I did to get just the executable ```yaml - name: Install dust unarchive: src: https://github.com/bootandy/dust/releases/download/v0.5.4/dust-v0.5.4-x86_64-unknown-linux-gnu.tar.gz dest: /usr/local/bin remote_src: yes extra_opts: # The dust zip contains a directory with the executable and some md files # We want to strip the directory and only take the executable - "--strip-components=1" - "dust-v0.5.4-x86_64-unknown-linux-gnu/dust" tags: dust ```
Author
Owner

@bootandy commented on GitHub (Jun 8, 2021):

I'll look at changing the packaging when i release 0.6

<!-- gh-comment-id:856571230 --> @bootandy commented on GitHub (Jun 8, 2021): I'll look at changing the packaging when i release 0.6
Author
Owner

@bootandy commented on GitHub (Jun 23, 2021):

I checked what burntsushi does - and his packages are inside a directory: https://github.com/BurntSushi/ripgrep/releases

I consider him to be the standard for rust packages so I want to keep packages inside a directory.

<!-- gh-comment-id:866632651 --> @bootandy commented on GitHub (Jun 23, 2021): I checked what burntsushi does - and his packages are inside a directory: https://github.com/BurntSushi/ripgrep/releases I consider him to be the standard for rust packages so I want to keep packages inside a directory.
Author
Owner

@briandipalma commented on GitHub (Jun 23, 2021):

I see, fair enough, I use his .deb package so I haven't had an issue with this.

<!-- gh-comment-id:866643885 --> @briandipalma commented on GitHub (Jun 23, 2021): I see, fair enough, I use his .deb package so I haven't had an issue with this.
Author
Owner

@bootandy commented on GitHub (Jun 23, 2021):

If you want to help me make a deb package I'd accept a pull request, I haven't tried creating that myself.

<!-- gh-comment-id:866711011 --> @bootandy commented on GitHub (Jun 23, 2021): If you want to help me make a deb package I'd accept a pull request, I haven't tried creating that myself.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#63