diff --git a/src/Fable.Cli/CHANGELOG.md b/src/Fable.Cli/CHANGELOG.md index 6aeec23df..ac3912d10 100644 --- a/src/Fable.Cli/CHANGELOG.md +++ b/src/Fable.Cli/CHANGELOG.md @@ -13,6 +13,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * [Rust] Updated support for interface object expressions (by @ncave) * [Rust] Added missing ResizeArray methods and tests (by @ncave) +### Fixed + +* [GH-3900](https://github.com/fable-compiler/Fable/pull/3900) [Python] Fix nuget packages with hypens in their names (by @MangelMaxime) + ## 4.21.0 - 2024-09-19 ### Added diff --git a/src/Fable.Compiler/CHANGELOG.md b/src/Fable.Compiler/CHANGELOG.md index faf330449..77a5c1380 100644 --- a/src/Fable.Compiler/CHANGELOG.md +++ b/src/Fable.Compiler/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Fixed + +* [GH-3900](https://github.com/fable-compiler/Fable/pull/3900) [Python] Fix nuget packages with hypens in their names (by @MangelMaxime) + ## 4.0.0-alpha-013 - 2024-09-19 ### Changed diff --git a/src/Fable.Compiler/ProjectCracker.fs b/src/Fable.Compiler/ProjectCracker.fs index 9df085d27..2eb21e243 100644 --- a/src/Fable.Compiler/ProjectCracker.fs +++ b/src/Fable.Compiler/ProjectCracker.fs @@ -732,7 +732,7 @@ let copyFableLibraryAndPackageSourcesPy (opts: CrackerOptions) (pkgs: FablePacka | _ -> let name = Naming.applyCaseRule Core.CaseRules.SnakeCase pkg.Id - IO.Path.Combine(opts.FableModulesDir, name.Replace(".", "_")) + IO.Path.Combine(opts.FableModulesDir, name.Replace(".", "_").Replace("-", "_")) copyDirIfDoesNotExist false sourceDir targetDir