Skip to content

Instantly share code, notes, and snippets.

@iamanishroy
Created February 2, 2023 14:38
Show Gist options
  • Save iamanishroy/a32c63482cca309e0f970fae18df9758 to your computer and use it in GitHub Desktop.
Save iamanishroy/a32c63482cca309e0f970fae18df9758 to your computer and use it in GitHub Desktop.
Build log
0
19:53:38:38 Build started. collectionType: collection, tablePath: og-test, pathname: table/ogTest, functionName: og_test
1
19:53:38:38 Duplicating functions template to build/functionBuilder/builds/1675347818751
2
19:53:39:39
3
19:53:39:39 Executing: cd build/functionBuilder/builds/1675347818751;pwd;ls -al
4
19:53:39:39 stdout: {"error":null,"stdout":"/home/node/app/build/functionBuilder/builds/1675347818751
total 8
drwxrwxrwx 2 root root 140 Feb 2 14:23 .
drwxrwxr-x 2 root root 120 Feb 2 14:23 ..
-rw-r--r-- 1 root root 43 Jan 26 01:25 firebase.json
-rw-r--r-- 1 root root 578 Jan 26 01:25 package.json
drwxr-xr-x 2 root root 360 Jan 26 16:43 src
-rw-r--r-- 1 root root 409 Jan 26 01:25 tsconfig.json
-rw-r--r-- 1 root root 5131 Jan 26 01:25 tslint.json
","stderr":""}
5
19:53:39:39 1
6
19:53:39:39 Executing: cd build/functionBuilder/builds/1675347818751;less package.json
7
19:53:39:39 stdout: {"error":null,"stdout":"{
"name": "functions",
"version": "0.0.1",
"scripts": {
"deploy": "echo 'n
' | firebase deploy --interactive"
},
"engines": {
"node": "16"
},
"main": "src/index.js",
"dependencies": {
"@google-cloud/logging": "^10.3.1",
"@google-cloud/secret-manager": "^4.1.4",
"@google-cloud/storage": "6.7.0",
"axios": "^1.2.0",
"file-type": "^16.5.3",
"firebase-admin": "^11.3.0",
"firebase-functions": "^4.1.0",
"lodash": "^4.17.21",
"node-fetch": "^2.6.7",
"uuid": "^8.3.2"
},
"devDependencies": {},
"private": true
}
","stderr":""}
8
19:53:39:39 2
9
19:53:39:39 Executing: cd build/functionBuilder/builds/1675347818751/src;pwd;ls -al
10
19:53:39:39 stdout: {"error":null,"stdout":"/home/node/app/build/functionBuilder/builds/1675347818751/src
total 16
drwxr-xr-x 2 root root 360 Jan 26 16:43 .
drwxrwxrwx 2 root root 140 Feb 2 14:23 ..
drwxr-xr-x 2 root root 80 Jan 26 16:43 derivatives
drwxr-xr-x 2 root root 80 Jan 26 16:43 extensions
-rw-r--r-- 1 root root 704 Jan 26 16:43 firebaseConfig.js
-rw-r--r-- 1 root root 495 Jan 26 16:43 firebaseConfig.js.map
-rw-r--r-- 1 root root 156 Jan 26 16:43 functionConfig.js
-rw-r--r-- 1 root root 191 Jan 26 16:43 functionConfig.js.map
-rw-r--r-- 1 root root 4061 Jan 26 16:43 index.js
-rw-r--r-- 1 root root 2310 Jan 26 16:43 index.js.map
drwxr-xr-x 2 root root 80 Jan 26 16:43 initialize
drwxr-xr-x 2 root root 80 Jan 26 16:43 logging
drwxr-xr-x 2 root root 160 Jan 26 16:43 propagates
-rw-r--r-- 1 root root 1027 Jan 26 16:43 rowy.js
-rw-r--r-- 1 root root 813 Jan 26 16:43 rowy.js.map
-rw-r--r-- 1 root root 1918 Jan 26 16:43 searchSync.js
-rw-r--r-- 1 root root 1636 Jan 26 16:43 searchSync.js.map
drwxr-xr-x 2 root root 240 Jan 26 16:43 utils
","stderr":""}
11
19:53:39:39 3
12
19:53:39:39 Executing: cd build/functionBuilder/builds/1675347818751;yarn
13
19:53:50:50 stdout: {"error":null,"stdout":"info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...
success Saved lockfile.
","stderr":"warning ../../../../../package.json: No license field
"}
14
19:53:50:50 Base dependencies installed successfully
15
19:53:50:50 Executing: cd build/functionBuilder/builds/1675347818751/node_modules/@google-cloud/logging/node_modules/@grpc/proto-loader;yarn
16
19:53:52:52 stdout: {"error":null,"stdout":"[1/5] Validating package.json...
[2/5] Resolving packages...
success Already up-to-date.
","stderr":"/bin/sh: cd: line 0: can't cd to build/functionBuilder/builds/1675347818751/node_modules/@google-cloud/logging/node_modules/@grpc/proto-loader: No such file or directory
warning ../package.json: No license field
"}
17
19:53:52:52 4
18
19:53:52:52 Executing: cd build/functionBuilder/builds/1675347818751/node_modules/@google-cloud/logging/node_modules/@grpc/proto-loader/build/src;pwd;ls -al
19
19:53:52:52 stdout: {"error":null,"stdout":"/home/node/app
total 330
drwxr-xr-x 2 root root 60 Feb 2 13:56 .
drwxr-xr-x 2 node node 120 Feb 2 13:57 ..
-rw-r--r-- 1 root root 37 Jan 26 01:25 .dockerignore
-rw-r--r-- 1 root root 20 Jan 26 01:25 .prettierignore
-rw-r--r-- 1 root root 644 Jan 26 01:25 Dockerfile
-rw-r--r-- 1 root root 11357 Jan 26 01:25 LICENSE
-rw-r--r-- 1 root root 2012 Jan 26 01:25 README.md
drwxr-xr-x 2 root root 60 Feb 2 13:56 build
-rwxr-xr-x 1 root root 768 Jan 26 01:25 deploy.sh
-rw-r--r-- 1 root root 1535 Jan 26 01:25 icon.png
-rw-r--r-- 1 root root 3569 Jan 26 01:25 logo-sticker.svg
drwxr-xr-x 2 root root 0 Jan 26 16:42 node_modules
-rw-r--r-- 1 root root 173 Jan 26 01:25 nodemon.json
-rw-r--r-- 1 root root 1538 Jan 26 01:25 package.json
drwxr-xr-x 2 root root 0 Jan 26 16:42 src
-rwxr-xr-x 1 root root 166 Jan 26 01:25 submit.sh
-rw-r--r-- 1 root root 6915 Jan 26 01:25 tsconfig.json
-rw-r--r-- 1 root root 305036 Jan 26 01:25 yarn.lock
","stderr":"/bin/sh: cd: line 0: can't cd to build/functionBuilder/builds/1675347818751/node_modules/@google-cloud/logging/node_modules/@grpc/proto-loader/build/src: No such file or directory
"}
20
19:53:52:52 5
21
19:53:52:52 Generating schema...
22
19:53:52:52 derivativeColumns: [{"name":"test-d","config":{"listenerFields":["title"],"derivativeFn":"const derivative:Derivative = async ({row,ref,db,storage,auth,logging})=>{
// WRITE YOUR CODE ONLY BELOW THIS LINE. DO NOT WRITE CODE/COMMENTS OUTSIDE THE FUNCTION BODY
return "";
// Example:
// const sum = row.a + row.b;
// return sum;
// WRITE YOUR CODE ONLY ABOVE THIS LINE. DO NOT WRITE CODE/COMMENTS OUTSIDE THE FUNCTION BODY
}","renderFieldType":"SIMPLE_TEXT"},"key":"testD","fieldName":"testD","index":3,"type":"DERIVATIVE"},{"fieldName":"ogT15","index":2,"config":{"derivativeFn":"let derivative: Derivative = async ({ row, ref, db, storage, auth, logging }) => {
const templateURL = "https://firebasestorage.googleapis.com/v0/b/expensssify.appspot.com/o/__custom__%2Fbase.txt?alt=media&token=8cd420fc-aef9-4307-9de8-d18045eba92d";
// const svg2img = require("svg2img");
// const wordWrap = require("word-wrap");
const { encode } = require("html-entities");
// const { convert } = require("convert-svg-to-png");
return [];
/*
const getFile = (url, type) => { return ""; };
const svgToBuffer = () => { };
const lines = wordWrap(row.title, {
indent: "",
width: 40,
trim: true,
}).split("
");
const b64i = await getFile(row.img[0].downloadURL, "image");
const template = await getFile(templateURL, "text");
const i = template
.replace("{{title}}", encode(row.title))
.replace(
"{{title_line_1}}",
encode(lines[0], { mode: "nonAsciiPrintable", level: "xml" })
)
.replace(
"{{title_line_2}}",
encode(lines[1], { mode: "nonAsciiPrintable", level: "xml" })
)
.replace("{{image}}", b64i);
const image = await convert(Buffer.from(i));
// const buffer = svgToBuffer(i);
const bucket = storage.bucket();
const file = await rowy.storage.upload.data(image, {
folderPath: ref.path,
fileName: encodeURIComponent(ref.id) + '.png'
})
return [file];
*/
}","listenerFields":["title","img"],"renderFieldType":"IMAGE"},"type":"DERIVATIVE","key":"ogT15","name":"og-t-15"}]
23
19:53:52:52 defaultValueColumns: []
24
19:53:52:52 documentSelectColumns: []
25
19:53:52:52 fieldTypes: {"img":"IMAGE","title":"LONG_TEXT","ogT15":"IMAGE","testD":"SIMPLE_TEXT"}
26
19:53:52:52 extensions: []
27
19:53:52:52 runtimeOptions: {}
28
19:53:52:52 tableSchema: {"functionConfigPath":"_rowy_/settings/functions/og_test","rowHeight":129,"columns":{"testD":{"name":"test-d","config":{"listenerFields":["title"],"derivativeFn":"const derivative:Derivative = async ({row,ref,db,storage,auth,logging})=>{
// WRITE YOUR CODE ONLY BELOW THIS LINE. DO NOT WRITE CODE/COMMENTS OUTSIDE THE FUNCTION BODY
return "";
// Example:
// const sum = row.a + row.b;
// return sum;
// WRITE YOUR CODE ONLY ABOVE THIS LINE. DO NOT WRITE CODE/COMMENTS OUTSIDE THE FUNCTION BODY
}","renderFieldType":"SIMPLE_TEXT"},"key":"testD","fieldName":"testD","index":3,"type":"DERIVATIVE"},"ogT15":{"fieldName":"ogT15","index":2,"config":{"derivativeFn":"let derivative: Derivative = async ({ row, ref, db, storage, auth, logging }) => {
const templateURL = "https://firebasestorage.googleapis.com/v0/b/expensssify.appspot.com/o/__custom__%2Fbase.txt?alt=media&token=8cd420fc-aef9-4307-9de8-d18045eba92d";
// const svg2img = require("svg2img");
// const wordWrap = require("word-wrap");
const { encode } = require("html-entities");
// const { convert } = require("convert-svg-to-png");
return [];
/*
const getFile = (url, type) => { return ""; };
const svgToBuffer = () => { };
const lines = wordWrap(row.title, {
indent: "",
width: 40,
trim: true,
}).split("
");
const b64i = await getFile(row.img[0].downloadURL, "image");
const template = await getFile(templateURL, "text");
const i = template
.replace("{{title}}", encode(row.title))
.replace(
"{{title_line_1}}",
encode(lines[0], { mode: "nonAsciiPrintable", level: "xml" })
)
.replace(
"{{title_line_2}}",
encode(lines[1], { mode: "nonAsciiPrintable", level: "xml" })
)
.replace("{{image}}", b64i);
const image = await convert(Buffer.from(i));
// const buffer = svgToBuffer(i);
const bucket = storage.bucket();
const file = await rowy.storage.upload.data(image, {
folderPath: ref.path,
fileName: encodeURIComponent(ref.id) + '.png'
})
return [file];
*/
}","listenerFields":["title","img"],"renderFieldType":"IMAGE"},"type":"DERIVATIVE","key":"ogT15","name":"og-t-15"},"title":{"config":{},"name":"title","type":"LONG_TEXT","key":"title","fieldName":"title","index":0,"width":316},"img":{"key":"img","fieldName":"img","type":"IMAGE","config":{},"index":1,"name":"img","width":251}}}
29
19:53:53:53 Generating config file...
30
19:53:53:53 Retrieving config file...
31
19:53:53:53 Validating config file...
32
19:53:53:53 Executing: cd build/functionBuilder/builds/1675347818751/src;tsc functionConfig.ts
33
19:54:08:08 stdout: {"error":null,"stdout":"","stderr":""}
34
19:54:08:08
35
19:54:08:08 Config file: "import fetch from "node-fetch";
import rowy from "./rowy";
export const fieldTypes = {
"img": "IMAGE",
"title": "LONG_TEXT",
"ogT15": "IMAGE",
"testD": "SIMPLE_TEXT"
}
export const triggerPath = "og-test/{docId}"
export const functionName = "og_test"
export const derivativesConfig = [{
fieldName: 'testD',
requiredPackages: [],
evaluate: async ({
row,
ref,
db,
auth,
storage,
utilFns,
logging
}) => {
// WRITE YOUR CODE ONLY BELOW THIS LINE. DO NOT WRITE CODE/COMMENTS OUTSIDE THE FUNCTION BODY
return "";
// Example:
// const sum = row.a + row.b;
// return sum;
// WRITE YOUR CODE ONLY ABOVE THIS LINE. DO NOT WRITE CODE/COMMENTS OUTSIDE THE FUNCTION BODY
},
listenerFields: ["title"]
},
{
fieldName: 'ogT15',
requiredPackages: [{
"name": "svg2img",
"version": "latest"
}, {
"name": "word-wrap",
"version": "latest"
}, {
"name": "html-entities",
"version": "latest"
}, {
"name": "convert-svg-to-png",
"version": "latest"
}],
evaluate: async ({
row,
ref,
db,
auth,
storage,
utilFns,
logging
}) => {
const templateURL = "https://firebasestorage.googleapis.com/v0/b/expensssify.appspot.com/o/__custom__%2Fbase.txt?alt=media&token=8cd420fc-aef9-4307-9de8-d18045eba92d";
// const svg2img = require("svg2img");
// const wordWrap = require("word-wrap");
const {
encode
} = require("html-entities");
// const { convert } = require("convert-svg-to-png");
return [];
/*
const getFile = (url, type) => { return ""; };
const svgToBuffer = () => { };
const lines = wordWrap(row.title, {
indent: "",
width: 40,
trim: true,
}).split("
");
const b64i = await getFile(row.img[0].downloadURL, "image");
const template = await getFile(templateURL, "text");
const i = template
.replace("{{title}}", encode(row.title))
.replace(
"{{title_line_1}}",
encode(lines[0], { mode: "nonAsciiPrintable", level: "xml" })
)
.replace(
"{{title_line_2}}",
encode(lines[1], { mode: "nonAsciiPrintable", level: "xml" })
)
.replace("{{image}}", b64i);
const image = await convert(Buffer.from(i));
// const buffer = svgToBuffer(i);
const bucket = storage.bucket();
const file = await rowy.storage.upload.data(image, {
folderPath: ref.path,
fileName: encodeURIComponent(ref.id) + '.png'
})
return [file];
*/
},
listenerFields: ["title",
"img"
]
},
]
export const defaultValueConfig = []
export const documentSelectConfig = []
export const extensionsConfig = []
export const runtimeOptions = {
"serviceAccount": "rowy-functions@expensssify.iam.gserviceaccount.com"
}
export const tableSchema = {
"functionConfigPath": "_rowy_/settings/functions/og_test",
"rowHeight": 129,
"columns": {
"testD": {
"name": "test-d",
"config": {
"listenerFields": ["title"],
"derivativeFn": "const derivative:Derivative = async ({row,ref,db,storage,auth,logging})=>{
// WRITE YOUR CODE ONLY BELOW THIS LINE. DO NOT WRITE CODE/COMMENTS OUTSIDE THE FUNCTION BODY
return "";
// Example:
// const sum = row.a + row.b;
// return sum;
// WRITE YOUR CODE ONLY ABOVE THIS LINE. DO NOT WRITE CODE/COMMENTS OUTSIDE THE FUNCTION BODY
}",
"renderFieldType": "SIMPLE_TEXT"
},
"key": "testD",
"fieldName": "testD",
"index": 3,
"type": "DERIVATIVE"
},
"ogT15": {
"fieldName": "ogT15",
"index": 2,
"config": {
"derivativeFn": "let derivative: Derivative = async ({ row, ref, db, storage, auth, logging }) => {
const templateURL = "https://firebasestorage.googleapis.com/v0/b/expensssify.appspot.com/o/__custom__%2Fbase.txt?alt=media&token=8cd420fc-aef9-4307-9de8-d18045eba92d";
// const svg2img = require("svg2img");
// const wordWrap = require("word-wrap");
const { encode } = require("html-entities");
// const { convert } = require("convert-svg-to-png");
return [];
/*
const getFile = (url, type) => { return ""; };
const svgToBuffer = () => { };
const lines = wordWrap(row.title, {
indent: "",
width: 40,
trim: true,
}).split("
");
const b64i = await getFile(row.img[0].downloadURL, "image");
const template = await getFile(templateURL, "text");
const i = template
.replace("{{title}}", encode(row.title))
.replace(
"{{title_line_1}}",
encode(lines[0], { mode: "nonAsciiPrintable", level: "xml" })
)
.replace(
"{{title_line_2}}",
encode(lines[1], { mode: "nonAsciiPrintable", level: "xml" })
)
.replace("{{image}}", b64i);
const image = await convert(Buffer.from(i));
// const buffer = svgToBuffer(i);
const bucket = storage.bucket();
const file = await rowy.storage.upload.data(image, {
folderPath: ref.path,
fileName: encodeURIComponent(ref.id) + '.png'
})
return [file];
*/
}",
"listenerFields": ["title", "img"],
"renderFieldType": "IMAGE"
},
"type": "DERIVATIVE",
"key": "ogT15",
"name": "og-t-15"
},
"title": {
"config": {},
"name": "title",
"type": "LONG_TEXT",
"key": "title",
"fieldName": "title",
"index": 0,
"width": 316
},
"img": {
"key": "img",
"fieldName": "img",
"type": "IMAGE",
"config": {},
"index": 1,
"name": "img",
"width": 251
}
}
}
export const region = "us-central1"
export const searchHost = null
export const searchIndices = []"
36
19:54:08:08 Installing dependencies: [{"name":"svg2img","version":"latest"},{"name":"word-wrap","version":"latest"},{"name":"html-entities","version":"latest"},{"name":"convert-svg-to-png","version":"latest"}]
37
19:54:32:32 [1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...
success Saved lockfile.
success Saved 109 new dependencies.
info Direct dependencies
├─ convert-svg-to-png@0.6.4
├─ html-entities@2.3.3
├─ svg2img@1.0.0-beta.2
└─ word-wrap@1.2.3
info All dependencies
├─ @jimp/bmp@0.16.2
├─ @jimp/core@0.16.2
├─ @jimp/custom@0.16.2
├─ @jimp/gif@0.16.2
├─ @jimp/jpeg@0.16.2
├─ @jimp/plugin-blit@0.16.2
├─ @jimp/plugin-blur@0.16.2
├─ @jimp/plugin-circle@0.16.2
├─ @jimp/plugin-color@0.16.2
├─ @jimp/plugin-contain@0.16.2
├─ @jimp/plugin-cover@0.16.2
├─ @jimp/plugin-crop@0.16.2
├─ @jimp/plugin-displace@0.16.2
├─ @jimp/plugin-dither@0.16.2
├─ @jimp/plugin-fisheye@0.16.2
├─ @jimp/plugin-flip@0.16.2
├─ @jimp/plugin-gaussian@0.16.2
├─ @jimp/plugin-invert@0.16.2
├─ @jimp/plugin-mask@0.16.2
├─ @jimp/plugin-normalize@0.16.2
├─ @jimp/plugin-print@0.16.2
├─ @jimp/plugin-resize@0.16.2
├─ @jimp/plugin-rotate@0.16.2
├─ @jimp/plugin-scale@0.16.2
├─ @jimp/plugin-shadow@0.16.2
├─ @jimp/plugin-threshold@0.16.2
├─ @jimp/plugins@0.16.2
├─ @jimp/png@0.16.2
├─ @jimp/tiff@0.16.2
├─ @jimp/types@0.16.2
├─ @resvg/resvg-js-linux-x64-gnu@2.3.0
├─ @resvg/resvg-js-linux-x64-musl@2.3.0
├─ @resvg/resvg-js@2.3.0
├─ @types/yauzl@2.10.0
├─ any-base@1.1.0
├─ atob@2.1.2
├─ bl@4.1.0
├─ bmp-js@0.1.0
├─ btoa@1.2.1
├─ buffer-crc32@0.2.13
├─ buffer-equal@0.0.1
├─ buffer@5.7.1
├─ cheerio-select@2.1.0
├─ cheerio@1.0.0-rc.12
├─ chownr@1.1.4
├─ commander@9.5.0
├─ convert-svg-core@0.6.4
├─ convert-svg-to-png@0.6.4
├─ cross-fetch@3.1.5
├─ css-select@5.1.0
├─ devtools-protocol@0.0.981744
├─ dom-walk@0.1.2
├─ entities@4.4.0
├─ exif-parser@0.1.12
├─ extract-zip@2.0.1
├─ fd-slicer@1.1.0
├─ file-url@3.0.0
├─ find-up@4.1.0
├─ fs-constants@1.0.0
├─ get-stdin@8.0.0
├─ get-stream@5.2.0
├─ gifwrap@0.9.4
├─ global@4.4.0
├─ html-entities@2.3.3
├─ htmlparser2@8.0.1
├─ image-q@4.0.0
├─ is-function@1.0.2
├─ jimp@0.16.2
├─ jpeg-js@0.4.4
├─ load-bmfont@1.4.1
├─ locate-path@5.0.0
├─ lodash.omit@4.5.0
├─ lodash.pick@4.4.0
├─ min-document@2.19.0
├─ mkdirp-classic@0.5.3
├─ mkdirp@0.5.6
├─ nth-check@2.1.1
├─ omggif@1.0.10
├─ p-locate@4.1.0
├─ p-try@2.2.0
├─ pako@1.0.11
├─ parse-bmfont-ascii@1.0.6
├─ parse-bmfont-binary@1.0.6
├─ parse-bmfont-xml@1.1.4
├─ parse-headers@2.0.5
├─ parse5-htmlparser2-tree-adapter@7.0.0
├─ path-exists@4.0.0
├─ pend@1.2.0
├─ pixelmatch@4.0.2
├─ pkg-dir@4.2.0
├─ pngjs@3.4.0
├─ pollock@0.2.1
├─ process@0.11.10
├─ progress@2.0.3
├─ puppeteer@13.7.0
├─ sax@1.2.4
├─ svg2img@1.0.0-beta.2
├─ tar-fs@2.1.1
├─ tar-stream@2.2.0
├─ through@2.3.8
├─ unbzip2-stream@1.4.3
├─ utif@2.0.1
├─ word-wrap@1.2.3
├─ ws@8.5.0
├─ xhr@2.6.0
├─ xml-parse-from-string@1.0.1
├─ xml2js@0.4.23
├─ xmlbuilder@11.0.1
└─ yauzl@2.10.0
38
19:54:32:32 Installing extensions: []
39
19:54:32:32 Installing dependencies...
40
19:54:33:33 [1/5] Validating package.json...
[2/5] Resolving packages...
success Already up-to-date.
41
19:54:33:33 Deploying og_test to expensssify
42
19:54:33:33 Executing: cd build/functionBuilder/builds/1675347818751; yarn deploy --project expensssify --only functions
43
19:54:50:50 stdout: {"error":{"code":2,"killed":false,"signal":null,"cmd":"cd build/functionBuilder/builds/1675347818751; yarn deploy --project expensssify --only functions"},"stdout":"$ echo 'n
' | firebase deploy --interactive --project expensssify --only functions
=== Deploying to 'expensssify'...
i deploying functions
i functions: ensuring required API cloudfunctions.googleapis.com is enabled...
i functions: ensuring required API cloudbuild.googleapis.com is enabled...
i artifactregistry: ensuring required API artifactregistry.googleapis.com is enabled...
✔ functions: required API cloudbuild.googleapis.com is enabled
✔ functions: required API cloudfunctions.googleapis.com is enabled
✔ artifactregistry: required API artifactregistry.googleapis.com is enabled
i functions: preparing codebase default for deployment
i functions: preparing . directory for uploading...
i functions: packaged /home/node/app/build/functionBuilder/builds/1675347818751 (94.61 KB) for uploading
✔ functions: . folder uploaded successfully
The following functions are found in your project but do not exist in your local source code:
R-SC_roadmap_votes(us-central1)
R-blog(us-central1)
R-blogs(us-central1)
R-expenses(us-central1)
R-receipts(us-central1)
If you are renaming a function or changing its region, it is recommended that you create the new function first before deleting the old one to prevent event loss. For more info, visit https://firebase.google.com/docs/functions/manage-functions#modify
? Would you like to proceed with deletion? Selecting no will continue the rest
of the deployments. (y/N) u001b[1Au001b[26Du001b[105Cu001b[1Bu001b[2Ku001b[1Au001b[2Ku001b[G? Would you like to proceed with deletion? Selecting no will continue the rest
of the deployments. (y/N) nu001b[1Au001b[27Du001b[106Cu001b[1Bu001b[2Ku001b[1Au001b[2Ku001b[G? Would you like to proceed with deletion? Selecting no will continue the rest
of the deployments. Nou001b[1Au001b[22Du001b[101C
r
u001b[1Bi functions: updating Node.js 16 function R-og_test(us-central1)...
⚠ functions: failed to update function projects/expensssify/locations/us-central1/functions/R-og_test
Failed to update function projects/expensssify/locations/us-central1/functions/R-og_test
Functions deploy had errors with the following functions:
R-og_test(us-central1)
i functions: cleaning up build files...
Error: There was an error deploying functions
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
","stderr":"warning ../../../../../package.json: No license field
error Command failed with exit code 2.
"}
44
19:54:50:50 $ echo 'n
' | firebase deploy --interactive --project expensssify --only functions
=== Deploying to 'expensssify'...
i deploying functions
i functions: ensuring required API cloudfunctions.googleapis.com is enabled...
i functions: ensuring required API cloudbuild.googleapis.com is enabled...
i artifactregistry: ensuring required API artifactregistry.googleapis.com is enabled...
✔ functions: required API cloudbuild.googleapis.com is enabled
✔ functions: required API cloudfunctions.googleapis.com is enabled
✔ artifactregistry: required API artifactregistry.googleapis.com is enabled
i functions: preparing codebase default for deployment
i functions: preparing . directory for uploading...
i functions: packaged /home/node/app/build/functionBuilder/builds/1675347818751 (94.61 KB) for uploading
✔ functions: . folder uploaded successfully
The following functions are found in your project but do not exist in your local source code:
R-SC_roadmap_votes(us-central1)
R-blog(us-central1)
R-blogs(us-central1)
R-expenses(us-central1)
R-receipts(us-central1)
If you are renaming a function or changing its region, it is recommended that you create the new function first before deleting the old one to prevent event loss. For more info, visit https://firebase.google.com/docs/functions/manage-functions#modify
? Would you like to proceed with deletion? Selecting no will continue the rest
of the deployments. (y/N) ? Would you like to proceed with deletion? Selecting no will continue the rest
of the deployments. (y/N) n? Would you like to proceed with deletion? Selecting no will continue the rest
of the deployments. No
i functions: updating Node.js 16 function R-og_test(us-central1)...
⚠ functions: failed to update function projects/expensssify/locations/us-central1/functions/R-og_test
Failed to update function projects/expensssify/locations/us-central1/functions/R-og_test
Functions deploy had errors with the following functions:
R-og_test(us-central1)
i functions: cleaning up build files...
Error: There was an error deploying functions
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
45
19:54:50:50
command: cd build/functionBuilder/builds/1675347818751; yarn deploy --project expensssify --only functions
stderr: warning ../../../../../package.json: No license field
error Command failed with exit code 2.
errorStackTrace: Error: Command failed: cd build/functionBuilder/builds/1675347818751; yarn deploy --project expensssify --only functions
warning ../../../../../package.json: No license field
error Command failed with exit code 2.
at ChildProcess.exithandler (node:child_process:402:12)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1100:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment