Git Product home page Git Product logo

Comments (4)

tgross35 avatar tgross35 commented on July 29, 2024

Could you add some more context about what you are doing? What crate are you trying to read the file from, or what is your end goal? I suspect it just isn't running from where you expect it, try printing std::env::current_dir() to figure out where it's running from. Or include_str! if you are just trying to read it once. Sorry about that, I missed that you were just running x.py build and thought you were attempting to modify bootstrap.

(FYI if you are working on developing rust-lang things, https://rust-lang.zulipchat.com/ can be a good place to go for help).

from rust.

dtolnay avatar dtolnay commented on July 29, 2024

Mentioning @onur-ozkan, as I'm guessing this would bisect to #125181.

from rust.

onur-ozkan avatar onur-ozkan commented on July 29, 2024

config.src.join("src/ci/channel") should be pointing to $project_root/src/ci/channel and the channel file should be there by default.

Try adding dbg!(config.src.join("src/ci/channel")); right above of

let file_content = t!(fs::read_to_string(config.src.join("src/ci/channel")));

and run ./x.py build --dry-run.

From my side, everything works as expected:

~/downloads/rustc-1.80.0-src  $ ./x.py build --dry-run
Building bootstrap
   Compiling bootstrap v0.0.0 (/home/nimda/downloads/rustc-1.80.0-src/src/bootstrap)
    Finished `dev` profile [unoptimized] target(s) in 3.31s
[src/core/config/config.rs:1319:9] config.src.join("src/ci/channel") = "/home/nimda/downloads/rustc-1.80.0-src/src/ci/channel"
WARNING: you have not made a `config.toml`
HELP: consider running `./x.py setup` or copying `config.example.toml` by running `cp config.example.toml config.toml`
Building stage0 library artifacts (x86_64-unknown-linux-gnu)
Building LLVM for x86_64-unknown-linux-gnu
Building compiler artifacts (stage0 -> stage1, x86_64-unknown-linux-gnu)
Creating a sysroot for stage1 compiler (use `rustup toolchain link 'name' build/host/stage1`)
Building stage1 library artifacts (x86_64-unknown-linux-gnu)
WARNING: no codegen-backends config matched the requested path to build a codegen backend. HELP: add backend to codegen-backends in config.toml.
Building tool rustdoc (stage0 -> stage1, x86_64-unknown-linux-gnu)
WARNING: you have not made a `config.toml`
HELP: consider running `./x.py setup` or copying `config.example.toml` by running `cp config.example.toml config.toml`
NOTE: this message was printed twice to make it more likely to be seen
Build completed successfully in 0:00:03

from rust.

rautyrauty avatar rautyrauty commented on July 29, 2024

Thanks everyone. I will continue to deal with this issue on Monday.

from rust.

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.