The "log4dart" package depends on "hosts" from both sources and "git"

Attempting to view a tutorial at the following links:

http://blog.dartwatch.com/2012/03/building-client-server-dart-app-part-1.html http://blog.dartwatch.com/2012/03/building-client-server-dart -app-part-2.html

Here is my pubspec.yaml :

name: myapp description: A sample application dependencies: log4dart: any mongo_dart: 0.0.1 unittest: { sdk: unittest } crimsonhttp: git: git://github.com/chrisbu/CrimsonHttp.git 

And here is the error:

Dependency Resolution ...

The package 'log4dart' depends on both hosted sources and git '.

It doesn't matter if I add log4dart to pubspec (any) or not. The error is always the same. "log4dart" is anyway set from "mongo_dart". Does anyone have any experience with this particular error message? It seems to me like a circular addiction problem.

Solution Until β€œcrimsonhttpd” fixes the problem or accepts my transfer request , use my repository from github with the following pubspec example:

 name: myapp description: A sample application dependencies: mongo_dart: 0.0.1 unittest: { sdk: unittest } crimsonhttp: git: git://github.com/geekrumper/CrimsonHttp.git log4dart: 
+6
source share
2 answers

John is right, the workaround is to specify the same git repository for log4dart as raspberry.

Packets are identified by their (original, descriptive) pair. For hosted packages, the description is simply the name of the package, but for git packages, the description also contains the git URL. Thus, two git checkout log4dart from different repositories will also be incompatible.

I opened two errors to fix the packages you are trying to use:

+3
source

I'm not sure why this was a mistake for pub, but it looks like crimsonhttp is referencing the version of log2dart git. This is probably the cause of the error message.

To fix this problem, you can reference: log4dart in your own pubspec.

+2
source

All Articles