Coder Social home page Coder Social logo

Comments (6)

panzerballett avatar panzerballett commented on May 28, 2024

hi!

i just started using panamax and it works perfectly well! thanks a lot!

but the issue about self-updates of rustup... are there any plans to mirror the necessary files as well? or is there tool that would do just that?

thanks anyway and best regards!

from panamax.

k3d3 avatar k3d3 commented on May 28, 2024

So I would like to mirror these files, but I'm not sure what all needs to be grabbed from the crates.io mirrors, how to discover said files, etc.

I'll try to ask on the Rust discord to see if anyone else knows, unless someone from @rust-lang can chime in who knows the architecture of crates.io better than I do.

For the time being, you should be able to re-download and run the rustup-init, and it'll act the same (it'll update the existing rustup, rather than replacing anything).

from panamax.

panzerballett avatar panzerballett commented on May 28, 2024

thanks a lot for your reply!

the error message i get (i.e. the file rustup wants to access first) is:

$ rustup update
...
info: downloading self-update
error: could not download file from 'http://panamax.internal/rustup/archive/1.20.2/x86_64-unknown-linux-gnu/rustup-init' to '/home/rust_user/.cargo/rustup-init'

(where i changed my internal server back to your http://panamax.internal/rustup/ to make it correspond to your example setting).

so it seems rustup/archive needs to be mirrored as well (it is not with my current settings).

from panamax.

k3d3 avatar k3d3 commented on May 28, 2024

Right, makes sense. Unfortunately I'm not sure how exactly to mirror the rustup/archive directory, as there's no listing.

from panamax.

k3d3 avatar k3d3 commented on May 28, 2024

https://github.com/rust-lang/rustup/blob/245b5885febcfa3106f531bef87fea529bacada3/src/cli/self_update.rs#L1025 Source code reference to this URL, as a note to myself

from panamax.

k3d3 avatar k3d3 commented on May 28, 2024

I've added code to create and update the archive directory whenever rustup is updated, so hopefully this won't be a problem anymore.

from panamax.

Related Issues (20)

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.