Closed extrawurst closed 9 years ago
What is dub.selection.json? :frowning:
Das primäre Anzeigen ist erstmal kein Problem, aber nun soll ja die Datei jedes mal auch mit verarbeitet werden, richtig?
naja das wär natürlich premium wenn du abhängig davon die dependencies anzeigen/laden würdest, klar! alles andere übernimmt ja dub selber wenn man baut?!
aber ich dachte eigentlich das passiert eh schon automatisch weil du per dub Aufruf fragst wo die Sachen alle liegen ?
Was steht denn dann letztendlich in der .selections-Datei drin? Hast du mal einen Beispielinhalt?
Und ja, momentan geht alles schon über dub list-installed
, also alles easy :)
naja da kann das gleiche drinstehen wie im dependency teil des dub.json. nur das du damit eben die Logik von dub überschreiben kannst, damit kannse ihm den 0.7.20 tag von vibe mit na lokal abgelegten vibe version überschreiben:
{
"fileVersion": 1,
"versions": {
"sockjs-d": "0.1.0",
"gcm-d": "0.0.3",
"vibe-d": {"version:":"~master", "path": "/Users/stephan/Documents/_github/vibe.d/"},
"libevent": "2.0.1+2.0.16",
"elo-rating-d": "1.0.0",
"openssl": "1.0.0+1.0.0e",
"libev": "4.0.0+4.04",
"syslogservice": "1.0.1",
"mysql-native": "0.1.0",
"xtea-d": "0.0.3"
}
}
als Beispiel
in dub.json kannse ja so sachen wie version x oder größer definieren. wenn keine selections Datei da ist wird das dann ermittelt was grad aktuell passt und in der selections festgehalten. wenn man die dann im SCM liegen hat kann es nicht mehr passieren das 2 devs am selben Projekt unterschiedliche Versionen der deps nutzen. weil er dann EXAKT das aus der selections json nimmt so lange man die nicht manuell updated
.. wer's braucht :smiley:
Ah, ich seh grad, es heißt dub.selections.json
mit s - ziemlich blöd, dass dub 1) diese datei zwangsweise anlegt und 2) die executable als symlink im root verzeichnet, nicht mehr als eigentliche datei.
braucht man leider erschreckend oft. weil nicht immer der letzte patch im vibe.d mit nem neuen RC-tag versehen wird...
On Wed, Nov 5, 2014 at 1:26 PM, Alexander Bothe notifications@github.com wrote:
.. wer's braucht [image: :smiley:]
— Reply to this email directly or view it on GitHub https://github.com/aBothe/Mono-D/issues/555#issuecomment-61799781.
nice thx
On Wed, Nov 5, 2014 at 1:32 PM, Alexander Bothe notifications@github.com wrote:
Closed #555 https://github.com/aBothe/Mono-D/issues/555 via 8ad36c5 https://github.com/aBothe/Mono-D/commit/8ad36c503219a59b4916a2b402ac600f81b7a858 .
— Reply to this email directly or view it on GitHub https://github.com/aBothe/Mono-D/issues/555#event-188636526.
would be good to have this popup in the project hirarchie aswell when present, to be able to edit it conveniently inside the IDE