Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

.net 8 isolated issue on dotnet publish #14110

Open
mariakoothoor-Shell opened this issue Feb 17, 2025 · 1 comment
Open

.net 8 isolated issue on dotnet publish #14110

mariakoothoor-Shell opened this issue Feb 17, 2025 · 1 comment

Comments

@mariakoothoor-Shell
Copy link

NuGet Product Used

NuGet.exe, dotnet.exe

Product Version

nuget.exe version 6.13.1

Worked before?

it works fine for .net 6 in proc

Impact

It's more difficult to complete my work

Repro Steps & Context

build-code:

#Set the VM operating system
runs-on: ubuntu-latest

#Set environment variables required for buidling the code
env:
  DOTNET_VERSION: '8.0.x'

#STEP1: Checkout the source code
- name: 'Checkout the source code'
uses: actions/checkout@v4

  #STEP2: Setup .NET Environment
  - name: 'Setup .NET Environment'
    uses: actions/setup-dotnet@v4
    with:
      dotnet-version: ${{ env.DOTNET_VERSION }}

  - name: Java Installation
    uses: actions/setup-java@v1
    with:
      java-version: '17'

  #STEP3: Publish the code and zip it in github workspace
  - name: Install SonarQube scanner
    if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
    shell: pwsh
    run: |
      New-Item -Path .\.sonar\scanner -ItemType Directory
      dotnet tool install --global dotnet-sonarscanner --version 5.5.3
  - name: Install Nuget
    uses: nuget/setup-nuget@v1
    with:
      nuget-version: latest

  - name: 'Publish and package code'
    shell: bash
    run: |
      mkdir ${{ env.BUILD_PUBLISH_FOLDER }}
      cd ${{ env.BUILD_PUBLISH_FOLDER }}
     
      dotnet nuget locals http-cache --clear
      dotnet nuget add source --username ${{ env.SEDEX_NUGET_AUTH_USERNAME }} --password ${{ env.SEDEX_NUGET_AUTH_TOKEN }} --store-password-in-clear-text --name github ${{ env.SEDEX_NUGET_SOURCE_PATH }}
      dotnet restore "${{ github.workspace }}/Shell.PDS.DataIngestion/Shell.PDS.DataIngestion.sln"
      dotnet publish ${{ env.PDS_DP_FUNCTION_PACKAGE_PATH }} --configuration Release --output .
      mkdir ${{ env.BUILD_OUTPUT_PATH }}
      zip -r ${{ env.BUILD_OUTPUT_PATH }}/${{ env.BUILD_PACKAGE_NAME }} .

error in running build pipeline - error NU3008: Package 'Microsoft.NETCore.Targets 1.1.3' from source 'https://nuget.pkg.github.com/sede-x/index.json': The package integrity check failed. The package has changed since it was signed. Try clearing the local http-cache and run nuget operation again.

Verbose Logs

@mariakoothoor-Shell
Copy link
Author

26s
Run mkdir /home/runner/work/ds-tns-pds-data-processor/ds-tns-pds-data-processor/output
SonarScanner for MSBuild 5.5.3
Using the .NET Core version of the Scanner for MSBuild
Pre-processing started.
Preparing working directories...
09:33:48.518 Updating build integration targets...
09:33:49.436 Fetching analysis configuration settings...
09:33:50.738 Provisioning analyzer assemblies for cs...
09:33:50.738 Installing required Roslyn analyzers...
09:33:51.762 Provisioning analyzer assemblies for vbnet...
09:33:51.762 Installing required Roslyn analyzers...
09:33:51.785 Pre-processing succeeded.
Clearing NuGet HTTP cache: /home/runner/.local/share/NuGet/http-cache
Local resources cleared.
Package source with Name: github added successfully.
Determining projects to restore...
/home/runner/work/ds-tns-pds-data-processor/ds-tns-pds-data-processor/Shell.PDS.DataIngestion/Shell.PDS.DataIngestion.Tests/Shell.PDS.DataIngestion.Tests.csproj : error NU3008: Package 'Microsoft.NETCore.Platforms 1.1.1' from source 'https://nuget.pkg.github.com/sede-x/index.json': The package integrity check failed. The package has changed since it was signed. Try clearing the local http-cache and run nuget operation again. [/home/runner/work/ds-tns-pds-data-processor/ds-tns-pds-data-processor/Shell.PDS.DataIngestion/Shell.PDS.DataIngestion.sln]
Package 'Microsoft.NETCore.Platforms 1.1.1' from source 'https://nuget.pkg.github.com/sede-x/index.json':
Signature type: Author
Package 'Microsoft.NETCore.Platforms 1.1.1' from source 'https://nuget.pkg.github.com/sede-x/index.json': Subject Name: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Package 'Microsoft.NETCore.Platforms 1.1.1' from source 'https://nuget.pkg.github.com/sede-x/index.json': SHA256 hash: 3F9001EA83C560D712C24CF213C3D312CB3BFF51EE89435D3430BD06B5D0EECE
Package 'Microsoft.NETCore.Platforms 1.1.1' from source 'https://nuget.pkg.github.com/sede-x/index.json': Valid from: 02/26/2018 00:00:00 to 01/27/2021 12:00:00
/home/runner/work/ds-tns-pds-data-processor/ds-tns-pds-data-processor/Shell.PDS.DataIngestion/Shell.PDS.DataIngestion.Tests/Shell.PDS.DataIngestion.Tests.csproj : error NU3008: Package 'Microsoft.NETCore.Targets 1.1.3' from source 'https://nuget.pkg.github.com/sede-x/index.json': The package integrity check failed. The package has changed since it was signed. Try clearing the local http-cache and run nuget operation again. [/home/runner/work/ds-tns-pds-data-processor/ds-tns-pds-data-processor/Shell.PDS.DataIngestion/Shell.PDS.DataIngestion.sln]
Package 'Microsoft.NETCore.Targets 1.1.3' from source 'https://nuget.pkg.github.com/sede-x/index.json':
Signature type: Author
Package 'Microsoft.NETCore.Targets 1.1.3' from source 'https://nuget.pkg.github.com/sede-x/index.json': Subject Name: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Package 'Microsoft.NETCore.Targets 1.1.3' from source 'https://nuget.pkg.github.com/sede-x/index.json': SHA256 hash: 3F9001EA83C560D712C24CF213C3D312CB3BFF51EE89435D3430BD06B5D0EECE
Package 'Microsoft.NETCore.Targets 1.1.3' from source 'https://nuget.pkg.github.com/sede-x/index.json': Valid from: 02/26/2018 00:00:00 to 01/27/2021 12:00:00
/home/runner/work/ds-tns-pds-data-processor/ds-tns-pds-data-processor/Shell.PDS.DataIngestion/Shell.PDS.DataIngestion/Shell.PDS.DataIngestion.csproj : error NU3008: Package 'Microsoft.NETCore.Platforms 3.1.0' from source 'https://nuget.pkg.github.com/sede-x/index.json': The package integrity check failed. The package has changed since it was signed. Try clearing the local http-cache and run nuget operation again. [/home/runner/work/ds-tns-pds-data-processor/ds-tns-pds-data-processor/Shell.PDS.DataIngestion/Shell.PDS.DataIngestion.sln]
Package 'Microsoft.NETCore.Platforms 3.1.0' from source 'https://nuget.pkg.github.com/sede-x/index.json':
Signature type: Author
Package 'Microsoft.NETCore.Platforms 3.1.0' from source 'https://nuget.pkg.github.com/sede-x/index.json': Subject Name: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Package 'Microsoft.NETCore.Platforms 3.1.0' from source 'https://nuget.pkg.github.com/sede-x/index.json': SHA256 hash: 3F9001EA83C560D712C24CF213C3D312CB3BFF51EE89435D3430BD06B5D0EECE
Package 'Microsoft.NETCore.Platforms 3.1.0' from source 'https://nuget.pkg.github.com/sede-x/index.json': Valid from: 02/26/2018 00:00:00 to 01/27/2021 12:00:00
Failed to restore /home/runner/work/ds-tns-pds-data-processor/ds-tns-pds-data-processor/Shell.PDS.DataIngestion/Shell.PDS.DataIngestion/Shell.PDS.DataIngestion.csproj (in 17.64 sec).
Failed to restore /home/runner/work/ds-tns-pds-data-processor/ds-tns-pds-data-processor/Shell.PDS.DataIngestion/Shell.PDS.DataIngestion.Tests/Shell.PDS.DataIngestion.Tests.csproj (in 17.64 sec).
Restored /home/runner/work/ds-tns-pds-data-processor/ds-tns-pds-data-processor/Shell.PDS.DataIngestion/Shell.PDS.DataIngestion.CommonLib/Shell.PDS.DataIngestion.CommonLib.csproj (in 1.44 sec).
Restored /home/runner/work/ds-tns-pds-data-processor/ds-tns-pds-data-processor/Shell.PDS.DataIngestion/Shell.PDS.DataIngestion.CommonLib.Test/Shell.PDS.DataIngestion.CommonLib.Test.csproj (in 2.1 sec).
Error: Process completed with exit code 1.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant