Skip to content

Commit

Permalink
Merge pull request #319 from Azure/ipam-actions-fixes2
Browse files Browse the repository at this point in the history
Added PIP Freeze Timestamp
  • Loading branch information
DCMattyG authored Sep 3, 2024
2 parents c9fc485 + cdac5f9 commit ca0c75b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/azure-ipam-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ jobs:
working-directory: engine
run: |
echo "# Dependencies for Azure IPAM v${{ steps.updateVersion.outputs.ipamVersion }}" > requirements.lock.txt
echo "# Generated on $(date)" >> requirements.lock.txt
pip freeze >> requirements.lock.txt
- name: Commit Updated Azure IPAM Code
Expand Down
5 changes: 1 addition & 4 deletions tools/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -198,15 +198,12 @@ try {

Write-Host "INFO: Running PIP install..." -ForegroundColor Green

# Remove package directory if it exists
Remove-Item -Path TEMP:\packages -Recurse -Force -ErrorAction SilentlyContinue

# Create temporary directory for PIP packages
$packageDir = New-Item -ItemType Directory -Path (Join-Path -Path $tempFolder -ChildPath "packages")

# Fetch Azure IPAM Engine modules
$pipInstallErr = $(
$pipInstall = pip install --upgrade -r requirements.lock.txt --target $packageDir.FullName --no-warn-script-location --progress-bar off
$pipInstall = pip install -r requirements.lock.txt --target $packageDir.FullName --no-warn-script-location --progress-bar off
) 2>&1

# Switch back to original dir
Expand Down

0 comments on commit ca0c75b

Please sign in to comment.