Repository navigation
Prevent paket holding locks on assemblies during binding redirects - #1480
Conversation
|
@haraldsteinlechner @isaacabraham is this good to go? |
|
What do we need from the assembly? We have a assembly meta data reader here in paket that doesn't load the assembly at all. |
|
imo my commit would be good to go. |
|
@forki it was to get assembly version and the signed key (if it exists). We never had the metadata reader at the time of the BR code so if that can also get these attributes maybe it would be better to replace this PR with one that uses that instead? In the interim this code looks like it should be fine (although I haven't tested it myself) - it's just an alternative way of loading data on the assembly. The fact that it has to load the entire assembly into memory first could have some implications in terms of memory though? |
Prevent paket holding locks on assemblies during binding redirects
|
mhm merging this broke couple of releated integration tests. not sure why the build was green. |
|
hmmm. crazy. also for my build all worked fine. checking again |
|
It's 4 integration tests. And if I revert your commit they are working
|
|
my initial commit was green because it only ran on travis i suppose |
|
ok. i failed in finding a good, fast and robust solution to this problem.
I don't know why there is a difference between mono and .net but one thing i know for sure: assembly binding semantcis is subtle and danger zone. So, fixing our windows build (and appveyor CI), is not that simple. Revert and look for another solution not involving assembly loading (which is also SLOOW)? |
|
Also AppDomains are dead in CoreCLR world. |
|
Ok I will try to use the meta data reader that came from the F# compiler
|
|
Sounds good. If we can rationalise this stuff to use a single mechanism that's a win. |
|
Ok tried a different workaround in c57e735 - can please test with latest? |
|
i also found a different workaround: haraldsteinlechner@777a415 the main problem was the caching of loaded libs EDIT: yes will test after my build succeeds. |
|
cool please send as PR |
|
i updated my fix haraldsteinlechner@ce21a16 However, i did not send a pull request yet since i think your version is more robust when considering same assemblies with different versions etc. (my version builds on computing a key for assembly paths, yours uses more .net assembling binding resoution magic) |
|
i finally went with my solution, since i had some weired test errors (laziness in seq). i hope we can close down this boring thing.... (see my new PR, waiting for CI) |
solves issue #1477