Skip to content

Commit

Permalink
fix: deduplication issue in create_index_json function (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
hadim authored Dec 21, 2023
1 parent a5ff5ef commit 4d2005d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion docs/cli_usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,3 @@ Example for Fish Shell just generate the `completions.fish` and add to `~/.confi
```sh
rattler-build --generate=fish > ${ZSH_COMPLETIONS_PATH:~/.config/fish/completions}/rattler-build.fish
```

2 changes: 2 additions & 0 deletions src/packaging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ fn create_index_json(output: &Output) -> Result<String, PackagingError> {
.depends
.iter()
.map(|dep| dep.spec().to_string())
.dedup()
.collect(),
constrains: output
.finalized_dependencies
Expand All @@ -341,6 +342,7 @@ fn create_index_json(output: &Output) -> Result<String, PackagingError> {
.constrains
.iter()
.map(|dep| dep.spec().to_string())
.dedup()
.collect(),
noarch: *recipe.build().noarch(),
track_features: vec![],
Expand Down
1 change: 0 additions & 1 deletion test-data/recipes/toml/expected/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"build": "pyh4616a5c_0",
"build_number": 0,
"depends": [
"python",
"python"
],
"license": "MIT",
Expand Down

0 comments on commit 4d2005d

Please sign in to comment.