Skip to content

./configure should not silently overwrite an existing config.toml #110109

Closed
@jyn514

Description

@jyn514

I tried this code:

; cat config.toml 
# Includes one of the default files in src/bootstrap/defaults
profile = "compiler"
changelog-seen = 2
; ./configure

I expected to see this happen: ./configure notices that I have an existing config.toml and gives a hard error unless I remove it (or automatically backs up the file somewhere).

Instead, this happened: ./configure overwrites the file without warning.

; ./configure
configure: processing command line
configure: 
configure: build.configure-args := []
configure: 
configure: writing `config.toml` in current directory
configure: 
configure: run `python /home/jyn/src/rust2/x.py --help`
; cat config.toml
# Keeps track of the last version of `x.py` used.
# If `changelog-seen` does not match the version that is currently running,
# `x.py` will prompt you to update it and to read the changelog.
# See `src/bootstrap/CHANGELOG.md` for more information.
changelog-seen = 2

[llvm]

[build]

# Arguments passed to the `./configure` script, used during distcheck. You
# probably won't fill this in but rather it's filled in by the `./configure`
# script. Useful for debugging.
configure-args = []

[install]

[rust]

[target.x86_64-unknown-linux-gnu]

[dist]

Meta

HEAD is branched from eb3e9c1.

Metadata

Metadata

Assignees

Labels

A-contributor-roadblockArea: Makes things more difficult for new or seasoned contributors to RustC-bugCategory: This is a bug.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions