@@ -16,9 +16,6 @@ public static class ZipHelper
16
16
{
17
17
public static async Task < Stream > GetAppZipFile ( string functionAppRoot , bool buildNativeDeps , BuildOption buildOption , bool noBuild , GitIgnoreParser ignoreParser = null , string additionalPackages = null , bool ignoreDotNetCheck = false )
18
18
{
19
- // temporarily provide an escape hatch to use gozip in case there are bugs in the dotnet implementation
20
- bool useGoZip = EnvironmentHelper . GetEnvironmentVariableAsBool ( Constants . UseGoZip ) ;
21
-
22
19
var gitIgnorePath = Path . Combine ( functionAppRoot , Constants . FuncIgnoreFile ) ;
23
20
if ( ignoreParser == null && FileSystemHelpers . FileExists ( gitIgnorePath ) )
24
21
{
@@ -49,20 +46,23 @@ public static async Task<Stream> GetAppZipFile(string functionAppRoot, bool buil
49
46
else if ( GlobalCoreToolsSettings . CurrentWorkerRuntime == WorkerRuntime . dotnet && buildOption == BuildOption . Remote )
50
47
{
51
48
// Remote build for dotnet does not require bin and obj folders. They will be generated during the oryx build
52
- return await CreateZip ( FileSystemHelpers . GetLocalFiles ( functionAppRoot , ignoreParser , false , new string [ ] { "bin" , "obj" } ) , functionAppRoot , Enumerable . Empty < string > ( ) , useGoZip ) ;
49
+ return await CreateZip ( FileSystemHelpers . GetLocalFiles ( functionAppRoot , ignoreParser , false , new string [ ] { "bin" , "obj" } ) , functionAppRoot , Enumerable . Empty < string > ( ) ) ;
53
50
}
54
51
else
55
52
{
56
53
var customHandler = await HostHelpers . GetCustomHandlerExecutable ( ) ;
57
54
IEnumerable < string > executables = ! string . IsNullOrEmpty ( customHandler )
58
55
? new [ ] { customHandler }
59
56
: Enumerable . Empty < string > ( ) ;
60
- return await CreateZip ( FileSystemHelpers . GetLocalFiles ( functionAppRoot , ignoreParser , false ) , functionAppRoot , executables , useGoZip ) ;
57
+ return await CreateZip ( FileSystemHelpers . GetLocalFiles ( functionAppRoot , ignoreParser , false ) , functionAppRoot , executables ) ;
61
58
}
62
59
}
63
60
64
- public static async Task < Stream > CreateZip ( IEnumerable < string > files , string rootPath , IEnumerable < string > executables , bool useGoZip = false )
61
+ public static async Task < Stream > CreateZip ( IEnumerable < string > files , string rootPath , IEnumerable < string > executables )
65
62
{
63
+ // temporarily provide an escape hatch to use gozip in case there are bugs in the dotnet implementation
64
+ bool useGoZip = EnvironmentHelper . GetEnvironmentVariableAsBool ( Constants . UseGoZip ) ;
65
+
66
66
if ( useGoZip )
67
67
{
68
68
if ( GoZipExists ( out string goZipLocation ) )
0 commit comments