@@ -19,25 +19,25 @@ const functions = require("firebase-functions");
1919
2020// Return meta tag for remote go import path
2121// See: https://pkg.go.dev/cmd/go#hdr-Remote_import_paths
22- const remoteGoImport = ( { importPrefix, vcs, repoRoot } ) => {
22+ const remoteGoImport = ( { importPrefix, vcs, repoRoot} ) => {
2323 return `<meta name="go-import" content="${ importPrefix } ${ vcs } ${ repoRoot } ">` ;
24- }
24+ } ;
2525
2626// Creates a firebase endpoint which implements a golang vanity server
27- const vanityGoEndpoint = ( { importPrefix, vcs, repoRoot } ) =>
28- functions . https . onRequest ( ( request , response ) => {
29- if ( request . query [ "go-get" ] === "1" ) {
30- return response . send (
31- remoteGoImport ( { importPrefix, vcs, repoRoot } )
32- ) ;
33- }
34- return response . redirect ( repoRoot ) ;
35- } ) ;
27+ const vanityGoEndpoint = ( { importPrefix, vcs, repoRoot} ) =>
28+ functions . https . onRequest ( ( request , response ) => {
29+ if ( request . query [ "go-get" ] === "1" ) {
30+ return response . send (
31+ remoteGoImport ( { importPrefix, vcs, repoRoot} )
32+ ) ;
33+ }
34+ return response . redirect ( repoRoot ) ;
35+ } ) ;
3636
3737exports . configsync = vanityGoEndpoint ( {
38- importPrefix : ' kpt.dev/configsync' ,
39- vcs : ' git' ,
40- repoRoot : ' https://github.com/GoogleContainerTools/kpt-config-sync.git'
38+ importPrefix : " kpt.dev/configsync" ,
39+ vcs : " git" ,
40+ repoRoot : " https://github.com/GoogleContainerTools/kpt-config-sync.git" ,
4141} ) ;
4242
4343exports . resourcegroup = vanityGoEndpoint ( {
0 commit comments