-
Notifications
You must be signed in to change notification settings - Fork 191
Pipeline looks for temp folder env variable which is not present on *nix machines #168
Comments
Mono's implementation of Path.GetTempPath() - https://github.com/mono/mono/blob/master/mcs/class/corlib/System.IO/Path.cs#L468 |
@Praburaj Can you have a look? |
@muratg sure. |
To save everyone a few clicks, this is what Mono ends up doing: https://github.com/mono/mono/blob/effa4c07ba850bedbe1ff54b2a5df281c058ebcb/eglib/src/gmisc-unix.c#L132-L151 |
I have a proposal on this to check for folders in the following order (1 & 2 is what we have today).
Thoughts? |
I like it. I would file a bug on the corefx repository with this as well. Ideally we'd use Path.GetTempPath() and it would do the right thing. ASPNET_TEMP can be used to override if course. |
@Tratcher I remember you mentioning that |
@davidfowl - I talked with @GrabYourPitchforks on this. I think it is okay to use |
|
The BufferingHelper tries to get the path to the temporary folder by reading the environmental variables 'ASPNET_TEMP' and 'TEMP'. Code
The issue is *nix machines don't have the mandatory 'TEMP' variable set by default.
@Tratcher @Praburaj discussed that Path.GetTempPath was not advised to be used while Environment.SpecialFolder is not present for Core CLR.
This leaves us with two options
The second one I am not comfortable with while the first one, I was not able to get a consistent variable that is similar to 'TEMP'. The OSX has 'TMPDIR' but this is not present in Linux machines. With the latest bits, running applications without either of these variables set results in error which are not very obvious either. Can we come at a consensus on what the guidelines should be ?
The text was updated successfully, but these errors were encountered: