Skip to content

Commit

Permalink
fix: fix path update in install script
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbutt committed Jan 16, 2025
1 parent b2bb270 commit c887bb2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ function Update-GenlinxRc {
param (
[string]$Path,
[string]$OutDir,
[string]$DependencyOwner,
[string]$DependencyUrl,
[string]$DependencyVersion
)
Expand All @@ -199,8 +200,8 @@ function Update-GenlinxRc {

$genlinxrc = Get-Content -Path $Path -Raw | & $convertFrom

$genlinxrc.build.nlrc.includePath += "./$OutDir/$DependencyUrl/$DependencyVersion"
$genlinxrc.build.nlrc.modulePath += "./$OutDir/$DependencyUrl/$DependencyVersion"
$genlinxrc.build.nlrc.includePath += "./$OutDir/$DependencyOwner/$DependencyUrl/$DependencyVersion"
$genlinxrc.build.nlrc.modulePath += "./$OutDir/$DependencyOwner/$DependencyUrl/$DependencyVersion"

# Ensure the paths are unique
$genlinxrc.build.nlrc.includePath = @($genlinxrc.build.nlrc.includePath | Select-Object -Unique)
Expand Down Expand Up @@ -424,6 +425,7 @@ try {
Update-Genlinxrc `
-Path $genlinxrc `
-OutDir $OutDir `
-DependencyOwner $repoInfo.Owner `
-DependencyUrl $repoInfo.Repo `
-DependencyVersion $version
}
Expand Down

0 comments on commit c887bb2

Please sign in to comment.