File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import * as args from "./args";
44import * as proto from "../../gcp/proto" ;
55import * as backend from "./backend" ;
66import * as build from "./build" ;
7+ import * as experiments from "../../experiments" ;
78import * as ensureApiEnabled from "../../ensureApiEnabled" ;
89import * as functionsConfig from "../../functionsConfig" ;
910import * as functionsEnv from "../../functions/env" ;
@@ -504,7 +505,9 @@ export async function loadCodebases(
504505 }
505506 const runtimeDelegate = await runtimes . getRuntimeDelegate ( delegateContext ) ;
506507 logger . debug ( `Validating ${ runtimeDelegate . language } source` ) ;
507- supported . guardVersionSupport ( runtimeDelegate . runtime ) ;
508+ if ( ! experiments . isEnabled ( "bypassfunctionsdeprecationcheck" ) ) {
509+ supported . guardVersionSupport ( runtimeDelegate . runtime ) ;
510+ }
508511 await runtimeDelegate . validate ( ) ;
509512 logger . debug ( `Building ${ runtimeDelegate . language } source` ) ;
510513 await runtimeDelegate . build ( ) ;
Original file line number Diff line number Diff line change @@ -77,6 +77,15 @@ export const ALL_EXPERIMENTS = experiments({
7777 shortDescription : "Use Cloud Run API to list v2 functions" ,
7878 public : false ,
7979 } ,
80+ bypassfunctionsdeprecationcheck : {
81+ shortDescription : "Bypass Functions check for old runtimes" ,
82+ fullDescription :
83+ "Bypasses the local check for whether a functions runtime is " +
84+ "decommissioned. This does not, by itself, allow you to deploy a function with a " +
85+ "decommissioned runtime, as there are server-side checks as well." ,
86+ public : false ,
87+ default : false ,
88+ } ,
8089
8190 // Emulator experiments
8291 emulatoruisnapshot : {
You can’t perform that action at this time.
0 commit comments