Git Product home page Git Product logo

binary-install's People

Contributors

alexcrichton avatar ashleygwilliams avatar azure-pipelines[bot] avatar bobbinarybuilder avatar brightly-salty avatar drager avatar everlastingbugstopper avatar johanhelsing avatar obsidianminor avatar printfn avatar xtuc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

binary-install's Issues

Can't use in concurrence

πŸ› Bug description

From my understanding here are the steps that download does:

  1. defines a destination (return if already exists)
  2. download and extract in a temporary directory
  3. rename the temporary directory to the final destionation

Now imagine a concurrent install is running, if after the step 1. another installation succedeed the rename (step 3.) will fail (however, only under Linux because of different syscalls).

πŸ€” Expected Behavior

Work

πŸ‘Ÿ Steps to reproduce

Use download with the same package concurrently (in multiple cargo test for example).

🌍 Your environment

Include the relevant details of your environment.
binary-install version: master
rustc version: 1.36.0-nightly
OS: Linux

Stabilize 0.0.3

The current release has been "alpha" for quite a while - I'm not quite sure what has to happen to stabilize, but I'm very happy to help!

Add and option to pass -k (insecure) option for curl

Corporate proxies love to kill tls connections with breaking handshakes etc etc. In this case -k option curl helps a lot. For example, cargo has similar option "check-revoke".
Is it possible to provide such option so it will invoke curl with -k option?
I personally struggling with it when using wasm-pack.

Switch from failure to anyhow

failure is dead, long live anyhow.

This will make moving some dependents of this crate from failure to anyhow easier as well.

Support for downloading binaries that aren't zip files or tarballs?

πŸ’‘ Feature description

Hi folks! Thank you for all the hard work on Rust's wasm tooling.

I'm looking to download the Tailwind CSS CLI, and those binaries aren't compressed. Currently binary-install panics if you try to download a non-compressed URL.

Is this a feature y'all would be interested in including? If so, I'm happy to think through the API design.

Replace curl with ureq?

πŸ’‘ Feature description

ureq is a rust-only library and doesn't require libssl-dev, openssl etc. in ci environments

RUSTSEC-2020-0053: dirs: dirs is unmaintained, use dirs-next instead

https://rustsec.org/advisories/RUSTSEC-2020-0053

Crate:         dirs
Version:       1.0.5
Warning:       unmaintained
Title:         dirs is unmaintained, use dirs-next instead
Date:          2020-10-16
ID:            RUSTSEC-2020-0053
URL:           https://rustsec.org/advisories/RUSTSEC-2020-0053
Dependency tree:
dirs 1.0.5
└── binary-install 0.0.2

dirs is unmaintained, dirs-next should be used instead.

I would be willing to implement this and submit a PR if it would be accepted.

Why rename failed?

πŸ› Bug description

This bug happened in

fs::rename(&temp, &destination)?;

Error Access is denied. (os error 5) occurs when call fs::rename.

I have tested that fs::rename can be renamed correctly in my program, but there are permissions problems in binary-install.
I just learned rust and don’t know how to solve this bug.

πŸ€” Expected Behavior

Rename successfully.

πŸ‘Ÿ Steps to reproduce

cloudflare/wrangler-legacy#1504 (comment)

🌍 Your environment

OS: Windows 10 v2004
binary-install version: 0.0.3-alpha.1
rustc version: rustc 1.46.0 (04488afe3 2020-08-24)

Replace `zip` with `zip_next`

πŸ› Bug description

The zip crate hasn't been updated in almost a year, and has a number of bugs that can cause panics when trying to process an invalid zip file. It should be replaced with zip_next, a fork I actively maintain.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.