snapshot before legacy cleanup
This commit is contained in:
+1
-5
@@ -125,7 +125,6 @@ var langEnvMap = map[string]langEnvDef{
|
||||
"go": {Image: "ghcr.io/fission/go-env", BuilderImage: "naeel/go-builder-fast:v1"},
|
||||
"php": {Image: "ghcr.io/fission/php-env"},
|
||||
"ruby": {Image: "ghcr.io/fission/ruby-env"},
|
||||
"perl": {Image: "ghcr.io/fission/perl-env", Version: 1},
|
||||
}
|
||||
|
||||
type updateCodeRequest struct {
|
||||
@@ -862,7 +861,7 @@ export default async function(ctx) {
|
||||
}
|
||||
|
||||
// buildScriptZip wraps code into a zip file with the given filename.
|
||||
// Used for PHP, Ruby, Perl where the environment requires a named source file.
|
||||
// Used for PHP and Ruby where the environment requires a named source file.
|
||||
func buildScriptZip(code, filename string) ([]byte, error) {
|
||||
var buf bytes.Buffer
|
||||
zw := zip.NewWriter(&buf)
|
||||
@@ -887,8 +886,6 @@ func defaultEntrypoint(lang string) string {
|
||||
return "main.php::handler"
|
||||
case "ruby":
|
||||
return "handler"
|
||||
case "perl":
|
||||
return "handler"
|
||||
case "go":
|
||||
return "Handler"
|
||||
default:
|
||||
@@ -2266,7 +2263,6 @@ func (s *server) handleAICheck(w http.ResponseWriter, r *http.Request) {
|
||||
"python": {ext: ".py", cmd: []string{"python3", "-m", "py_compile"}},
|
||||
"ruby": {ext: ".rb", cmd: []string{"ruby", "-c"}},
|
||||
"php": {ext: ".php", cmd: []string{"php", "-l"}},
|
||||
"perl": {ext: ".pl", cmd: []string{"perl", "-c"}},
|
||||
"go": {ext: ".go", cmd: nil}, // go проверяем через go/parser
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user