NuGet hash validation failed NU1403 - visual-studio

I have a solution and it working on other developer's laptops, but on one by some reason during build, I see the next error:
Error NU1403 Package content hash validation failed for
Lucene.Net.Contrib.3.0.3. The package is different than the last
restore.
build is failed by this reason.
at packeges folder I see correct Lucene.Net.Contrib.3.0.3 , what could be a reson for it and how to fix ?

clean up the global packaged folder fixed this issue.
path is %userprofile%.nuget\packages

Related

Xcode 12 SPM does not fetch packages

I've been seriously frustrated with SPM, I am simply unable to fetch packages. Would really appreciate any suggestions you may have.
When I open Xcode project my laptop is unable to resolve SPM packages that does work on another computer.
I get the following error message for every package:
Missing package product 'Alamofire'
If I remove the package and try to add it manually via
File > Add Package dependency
Put URL: https://github.com/Alamofire/Alamofire.git
It then asks me sign in with Github account (even I have already added Github Account to Xcode and this is public repository).
After logging in it asks me to input version and upon clicking Next says "The repository could not be found. Make sure a valid repository exists at the specified location and try again."
The problem was with clearing ~/.ssh/config. I had removed line which forced ssh connection.

Webpack compilation, local Module not found: Error: Can't resolve

I modified a plugin and added it in my project's file system. So in my package.json I have : "some-module": "file:modules/some-module".
It works fine on my machine (Windows), but not on our build server (Linux CentOS), which fails during webpack compilation with error : Module not found: Error: Can't resolve 'some-module'.
The build server does clean the workspace before build, and after the failed build the plugin does exist in 'node_modules' folder of the workspace.
What could cause this error if the plugin does exists ?
EDIT : I tried on another linux machine (CentOS) and build failed for same error.
EDIT2 : I changed the local file: reference in my package.json file to a .tar.gz git URL. The error is now :
ERROR in ../node_modules/nativescript-pdfview-ng/pdfview-ng.ts
Module build failed (from ../node_modules/#ngtools/webpack/src/index.js):
Error: /root/myProject/node_modules/nativescript-pdfview-ng/pdfview-ng.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library. Please open an issue in the library repository to alert its author and ask them to package the library using the Angular Package Format ([link][1]).
at AngularCompilerPlugin.getCompiledFile (/root/myProject/node_modules/#ngtools/webpack/src/angular_compiler_plugin.js:719:23)
at plugin.done.then (/root/myProject/node_modules/#ngtools/webpack/src/loader.js:41:31)
at process._tickCallback (internal/process/next_tick.js:68:7)
Are you using NativeScript 5.x?
If so, make sure to prefix the plugin with "nativescript-", since {N} 5.x the module resolution seems to have changed with regards to Webpack'ed build.

Go - use of internal package [...] not allowed

I tried to clone and build the project from the stellar bridge-server github repository. After quite a lot of steps I am facing following errors:
[ERROR] github.com\stellar\go\services\bridge\internal\handlers\main.go:8:2: use of internal package github.com/stellar/go/services/bridge/internal/db not allowed
[ERROR] github.com\stellar\go\services\bridge\internal\handlers\main.go:9:2: use of internal package github.com/stellar/go/services/bridge/internal/listener not allowed
[ERROR] github.com\stellar\go\services\bridge\internal\handlers\main.go:10:2: use of internal package github.com/stellar/go/services/bridge/internal/submitter not allowed
( ... many more issues of same format ... )
I imported the dependencies and different packages but when I try to compile and install it I get this errors. I moved some folders to their upper folder to have a same directory as in repo wished but the errors are still the same.
I'm pretty confused and do not understand this problem. I'm totaly new in packaging directory system.
What is the problem here and what should I do?
Thank you for your help.

Importing Gradle project with "Use gradle wrapper with verification" immediately failing in Android Studio 0.2.9

NOTE: i figured out the solution to this as i was writing the post, but i'll put the info up here in case anyone else needs it.
Android Studio was giving me the following error when i tried to import a Gradle project (using File -> Import Project... and selecting the build.gradle file)
Resolve Error
Could not install Gradle distribution from 'http://
services.gradle.org/distributions-snapshots/
gradle-1.8-20130830160653+0000-bin.zip'.
java.util.zip.ZipException: error in opening zip file
error in opening zip file
Consult IDE log for more details (Help | Show Log)
see also:
Screenshot of error dialog
gist of error log
the error appeared immediately after clicking 'OK' in the import dialog. the import process had previously failed due to a spotty internet connection, and i guessed that Android Studio / Gradle may have cached the partial download and was now unsuccessfully trying to use that partial download instead of fetching the files.
solution
this issue can be resolved by clearing the bad download out of the cache. my cache on OSX for gradle-1.8-20130830160653+0000-bin.zip was located at
~/.gradle/wrapper/dists/gradle-1.8-20130830160653+0000-bin
removing that directory and retrying the 'Import Project from Gradle' process again promoted the system to retry the download.
hope this helps someone spend less time on this than i did :)
For Windows users it is located in
C:\Users\%your_username%\.gradle\wrapper\dists
just remove everything inside the above folder...
Hope it helps... :)
In eclise go to Window>preferences>Gradle.
in Gradle distribuition check URL
Put the value choosing the your distribuition from
https://services.gradle.org/distributions-snapshots
Sorry my bad english XD

Trying to compile an XCode project with a workspace on Jenkins slave

I got a Jenkins slave building single xcode projects, working perfectly.
However, I got a project with a workspace where some 3rd party files are setup in the root of the workspace with a gitmodule then imported in to the project as described here.
When Jenkins compiles and reaches AppDelegate.h it throws and error when trying to import a file from the library.
fatal error: 'RestKit/Restkit.h' file not found #import <RestKit/Restkit.h>
I got the project compiling by pointing to the workspace. However it now fails when reaches the packaging stage. I don't see the build directory created in the workspace.
** BUILD SUCCEEDED **
Cannot remove *.ipa files from a non-existing directory:
/Users/leon/Work/projects/wearehive/flatstr/build/Flatstr/dev/jenkins/workspace/Snug-debuOLD/build/Debug-iphoneos
Packaging IPA
FATAL: null
java.lang.NullPointerException
at au.com.rayh.XCodeBuilder.perform(XCodeBuilder.java:421)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:705)
at hudson.model.Build$RunnerImpl.build(Build.java:178)
at hudson.model.Build$RunnerImpl.doRun(Build.java:139)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:475)
at hudson.model.Run.run(Run.java:1434)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:239)
Your Project=>build settings=>Header Search Paths, add follow path:
"$(SOURCE_ROOT)/RestKit/Build/Headers"
Be sure checked box in front of them.
I use xcode plugin and use this for SYMROOT value instead of space fixes the problem.
${workspace}/build/[app name]/Build/Products

Resources