Skip to content

Commit

Permalink
Fix bootstrapper on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Oct 4, 2023
1 parent 78d1a2a commit e2beb3a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
8 changes: 5 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
This file contains tracks the changes landing in Rye. It includes changes
that were not yet released.

## 0.16.0
<!-- released start -->

_Unreleased_
## 0.15.2

<!-- released start -->
Released on 2023-10-04

- Fixed the updater not replacing the python shim correctly on Linux.

## 0.15.1

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rye/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rye"
version = "0.16.0"
version = "0.15.2"
edition = "2021"
license = "MIT"

Expand Down
1 change: 1 addition & 0 deletions rye/src/bootstrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ pub fn update_core_shims(shims: &Path, this: &Path) -> Result<(), Error> {
// for instance is needed when the rye executable is placed on a different volume
// than ~/.rye/shims
if cfg!(target_os = "linux") {
fs::remove_file(shims.join("python")).ok();
if fs::hard_link(this, shims.join("python")).is_err() {
fs::copy(this, shims.join("python")).context("tried to copy python shim")?;
}
Expand Down

0 comments on commit e2beb3a

Please sign in to comment.