Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    NU3008 The package integrity check failed.

    Scheduled Pinned Locked Moved Support
    microsoftprogetnuget
    5 Posts 2 Posters 174 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      Hi,
      We are storing some packages on our local install of ProGet. However when we do a nuget package restore on the command line it fails for some packages with error

      NU3008 The package integrity check failed.

      However when we bypass proget and get packages directly from nuget we do not see this error.

      nuget restore -source "https://api.nuget.org/v3/index.json"

      The packages are signed. That the only difference I can see as of now. For example this guy:
      microsoft.toolkit.uwp

      Product: ProGet
      Version: 5.1.6

      1 Reply Last reply Reply Quote 0
      • T Offline
        thoven
        last edited by

        Is your feed configured to strip symbols and/or source code from the package?

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          Thanks Tod! I was getting the same errors when I had my feed configured to strip symbols and source code. Once I disabled that feature, I started passing integrity checks again.

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            i suppose, striping symbols and source code shouldn't cause the integrity check to fail otherwise best to remove this feature completely from proget?

            [14:41:36]Errors in packages.config projects
            [14:41:36] NU3008: Package 'CefSharp.Wpf 65.0.1' from source 'http://proget/nuget/feed': The package integrity check failed.
            [14:41:36]
            [14:41:36]Process exited with code 1

            1 Reply Last reply Reply Quote 0
            • ? This user is from outside of this forum
              Guest
              last edited by

              Of course, modifying a package file (i.e. stripping symbols/source) will cause the hash code to change, which is what the integrity check uses. There's no way around that.

              The stripping feature is important, because Visual Studio will not use a symbol or source server if the package has embedded symbols in it. You aren't supposed to put these in a nuget.org package, but some people clearly do (as the example above).

              So, just pick which is more important to you.

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 1 / 1
              • First post
                Last post
              Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation