Skip to content

Commit

Permalink
Fix a regression in the add command (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Jan 21, 2024
1 parent 6cab42d commit e7d9489
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ _Unreleased_
- On Windows the `PATH` is now automatically adjusted on install and uninstall. This means that
manually adding the rye folder to the search path is no longer necessary. #483

- Fixed a regression in 0.18 that caused the `add` command to fail. #547

<!-- released start -->

## 0.18.0
Expand Down
4 changes: 2 additions & 2 deletions rye/src/bootstrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub const SELF_PYTHON_TARGET_VERSION: PythonVersionRequest = PythonVersionReques
suffix: None,
};

const SELF_VERSION: u64 = 4;
const SELF_VERSION: u64 = 5;

const SELF_REQUIREMENTS: &str = r#"
build==0.10.0
Expand All @@ -52,7 +52,7 @@ pyproject_hooks==1.0.0
requests==2.29.0
tomli==2.0.1
twine==4.0.2
unearth==0.9.0
unearth==0.12.1
urllib3==1.26.15
virtualenv==20.22.0
"#;
Expand Down
2 changes: 1 addition & 1 deletion rye/src/cli/add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ sources = json.loads(sys.argv[3])
pre = len(sys.argv) > 4 and sys.argv[4] == "--pre"
finder = PackageFinder(
index_urls=sources["index_urls"],
index_urls=[x[0] for x in sources["index_urls"]],
find_links=sources["find_links"],
trusted_hosts=sources["trusted_hosts"],
)
Expand Down

0 comments on commit e7d9489

Please sign in to comment.