{"action":"closed","issue":{"url":"https://api.github.com/repos/electron-userland/electron-forge/issues/557","repository_url":"https://api.github.com/repos/electron-userland/electron-forge","labels_url":"https://api.github.com/repos/electron-userland/electron-forge/issues/557/labels{/name}","comments_url":"https://api.github.com/repos/electron-userland/electron-forge/issues/557/comments","events_url":"https://api.github.com/repos/electron-userland/electron-forge/issues/557/events","html_url":"https://github.com/electron-userland/electron-forge/issues/557","id":354959133,"node_id":"MDU6SXNzdWUzNTQ5NTkxMzM=","number":557,"title":"`ignore` with array of regexes causes ENOENT","user":{"login":"mako-taco","id":2238381,"node_id":"MDQ6VXNlcjIyMzgzODE=","avatar_url":"https://avatars3.githubusercontent.com/u/2238381?v=4","gravatar_id":"","url":"https://api.github.com/users/mako-taco","html_url":"https://github.com/mako-taco","followers_url":"https://api.github.com/users/mako-taco/followers","following_url":"https://api.github.com/users/mako-taco/following{/other_user}","gists_url":"https://api.github.com/users/mako-taco/gists{/gist_id}","starred_url":"https://api.github.com/users/mako-taco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mako-taco/subscriptions","organizations_url":"https://api.github.com/users/mako-taco/orgs","repos_url":"https://api.github.com/users/mako-taco/repos","events_url":"https://api.github.com/users/mako-taco/events{/privacy}","received_events_url":"https://api.github.com/users/mako-taco/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-08-29T01:18:30Z","updated_at":"2018-08-29T21:33:46Z","closed_at":"2018-08-29T21:33:46Z","author_association":"NONE","body":"<!--\r\nThanks for filing an issue!\r\n\r\nIf you have a question, consider searching and asking in other Electron community sites,\r\nso that more people have a chance to help you: https://github.com/electron/electron#community\r\n\r\nSpecific issues about the templates that are available by default when creating a new\r\nElectron Forge project should be filed in its GitHub repository:\r\nhttps://github.com/electron-userland/electron-forge-templates\r\n\r\nPlease check off all of the steps as they are completed by replacing [ ] with [x].\r\n-->\r\n\r\n* [x] I have read the [contribution documentation](https://github.com/electron-userland/electron-forge/blob/master/CONTRIBUTING.md) for this project.\r\n* [x] I agree to follow the [code of conduct](https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md) that this project follows, as appropriate.\r\n* [x] I have searched the issue tracker for an issue that matches the one I want to file, without success.\r\n\r\n**Please describe your issue:**\r\n`electron-forge package` fails with the following message:\r\n\r\n```\r\nAn unhandled error has occurred inside Forge:\r\nENOENT: no such file or directory, open '/var/folders/rr/8bhg8lwn65qbqjqbg6cgqt1n311f1x/T/electron-packager/darwin-x64/xxxx-darwin-x64/Electron.app/Contents/Resources/app/package.json'\r\nError: ENOENT: no such file or directory, open '/var/folders/rr/8bhg8lwn65qbqjqbg6cgqt1n311f1x/T/electron-packager/darwin-x64/xxxx-darwin-x64/Electron.app/Contents/Resources/app/package.json'\r\n```\r\n\r\n\r\n<!-- For bugs and questions, please answer these questions to the best of your ability. -->\r\n\r\n**Console output when you run `electron-forge` with the environment variable `DEBUG=electron-forge:*`. (Instructions on how to do so [here](https://www.npmjs.com/package/debug#usage)). Please include the stack trace if one exists.**\r\n\r\n```\r\nWARNING: DEBUG environment variable detected.  Progress indicators will be sent over electron-forge:lifecycle\r\n  electron-forge:async-ora Process Started: Checking your system +0ms\r\n  electron-forge:check-system checking system, create ~/.skip-forge-system-check to stop doing this +0ms\r\n  electron-forge:async-ora Process Succeeded: Checking your system -- after 624ms +625ms\r\nWARNING: DEBUG environment variable detected.  Progress indicators will be sent over electron-forge:lifecycle\r\n  electron-forge:async-ora Process Started: Preparing to Package Application for arch: x64 +0ms\r\n  electron-forge:project-resolver searching for project in: /Users/xxxx/src/server/paper/etherpad/src/desktop +0ms\r\n  electron-forge:project-resolver electron-forge compatible package.json found in /Users/xxxx/src/server/paper/etherpad/src/desktop/package.json +2ms\r\n  electron-forge:hook hook triggered: resolveForgeConfig +0ms\r\n  electron-forge:hook hook triggered: readPackageJson +1ms\r\n  electron-forge:hook calling mutating hook: readPackageJson with item: { name: 'paper-desktop',\r\n  productName: 'yyyy',\r\n  version: '0.0.4',\r\n  main: 'dist/build/main.js',\r\n  scripts:\r\n   { build: './bin/build.sh --mode development',\r\n     watch: 'tsc -w',\r\n     typecheck: 'tsc --noEmit',\r\n     '//':\r\n      '--enable-sandbox cannot be set due to a bug with IPC (https://github.com/electron/electron/issues/11922). See web_preference_verifier comment for more detail.',\r\n     start:\r\n      './node_modules/.bin/electron-forge start ./dist/build/main.js',\r\n     debug:\r\n      './node_modules/.bin/electron-forge start ./dist/build/main.js -- --inspect=12345',\r\n     'debug-brk':\r\n      './node_modules/.bin/electron-forge start ./dist/build/main.js -- --inspect-brk=12345',\r\n     clean: './bin/clean.sh',\r\n     make:\r\n      './bin/clean.sh && ./bin/build.sh --mode production && ./node_modules/.bin/electron-forge make',\r\n     package:\r\n      './bin/clean.sh && ./bin/build.sh --mode production && ./node_modules/.bin/electron-forge package' },\r\n  author: 'yyyy',\r\n  license: 'Proprietary',\r\n  config: { forge: './forge.config.js' },\r\n  dependencies:\r\n   { classnames: '^2.2.6',\r\n     'yyyy-auth': '/Users/vagrant/src/client/app/lib/core/auth/node',\r\n     'electron-log': '^2.1.0',\r\n     'electron-store': '^2.0.0',\r\n     react: '^16.2.0',\r\n     'react-dom': '^16.2.0',\r\n     rxjs: '5.4.3',\r\n     'source-map-support': '^0.5.9' },\r\n  devDependencies:\r\n   { '@electron-forge/cli': '^6.0.0-beta.27',\r\n     '@electron-forge/maker-squirrel': '^6.0.0-beta.27',\r\n     '@types/classnames': '^2.2.6',\r\n     '@types/electron-store': '^1.3.0',\r\n     '@types/jest': '^22.2.3',\r\n     browserify: '^16.2.2',\r\n     'browserify-require-not-found-parent': '^0.1.0',\r\n     cpx: '^1.5.0',\r\n     'css-loader': '^1.0.0',\r\n     electron: '2.0.2',\r\n     'electron-forge':\r\n      'https://github.com/electron-userland/electron-forge/#6.0.0-beta.27',\r\n     'electron-squirrel-startup': '^1.0.0',\r\n     'extract-loader': '^2.0.1',\r\n     'file-loader': '^2.0.0',\r\n     'html-loader': '^0.5.5',\r\n     less: '^3.0.4',\r\n     'less-loader': '^4.1.0',\r\n     ncp: '^2.0.0',\r\n     'node-loader': '^0.6.0',\r\n     'style-loader': '^0.23.0',\r\n     'ts-loader': '^4.5.0',\r\n     tsify: '^4.0.0',\r\n     tslib: '^1.9.3',\r\n     typescript: '^2.6.2',\r\n     webpack: '^4.17.1',\r\n     'webpack-cli': '^3.1.0' } } +0ms\r\n  electron-forge:hook hook triggered: generateAssets +2ms\r\n  electron-forge:hook hook triggered: prePackage +0ms\r\n  electron-forge:packager packaging with options { asar: false,\r\n  overwrite: true,\r\n  protocols:\r\n   [ { protocol: 'yyyy-paper',\r\n       name: 'yyyy Paper',\r\n       schemes: 'yyyy-paper' } ],\r\n  afterCopy: [ [Function] ],\r\n  packageManager: 'yarn',\r\n  icon:\r\n   '/Users/xxxx/src/server/paper/etherpad/src/desktop/static/icon.icns',\r\n  ignore: [ {}, {}, {}, {} ],\r\n  dir: '/Users/xxxx/src/server/paper/etherpad/src/desktop',\r\n  arch: 'x64',\r\n  platform: 'darwin',\r\n  afterExtract: [ [Function] ],\r\n  afterPrune: [ [Function] ],\r\n  out: '/Users/xxxx/src/server/paper/etherpad/src/desktop/out',\r\n  electronVersion: '2.0.2',\r\n  quiet: true } +0ms\r\n  electron-forge:hook hook triggered: packageAfterExtract +2s\r\n  electron-forge:async-ora Process Succeeded: Preparing to Package Application for arch: x64 -- after 1.7s +2s\r\n  electron-forge:hook hook triggered: packageAfterCopy +57ms\r\n  electron-forge:async-ora Process Started: Preparing native dependencies +1ms\r\n  electron-forge:async-ora Process Failed: Preparing native dependencies () => {\r\n    if (!startTime) return;\r\n    return `-- after ${`${(0, _prettyMs.default)(Date.now() - startTime)}`.cyan}`;\r\n  } +3ms\r\n\r\nAn unhandled error has occurred inside Forge:\r\nENOENT: no such file or directory, open '/var/folders/rr/8bhg8lwn65qbqjqbg6cgqt1n311f1x/T/electron-packager/darwin-x64/yyyy-darwin-x64/Electron.app/Contents/Resources/app/package.json'\r\nError: ENOENT: no such file or directory, open '/var/folders/rr/8bhg8lwn65qbqjqbg6cgqt1n311f1x/T/electron-packager/darwin-x64/yyyy-darwin-x64/Electron.app/Contents/Resources/app/package.json'\r\n```\r\n\r\n**What command line arguments are you passing?**\r\n\r\n```\r\npackage\r\n```\r\n\r\n**What does your `config.forge` data in `package.json` look like?**\r\n\r\n```\r\nconst rebuild = require('electron-rebuild').rebuid;\r\nconst path = require('path');\r\nconst packageJson = require('./package.json');\r\n\r\nmodule.exports = {\r\n  electronRebuildConfig: {},\r\n  packagerConfig: {\r\n    protocols: [\r\n      {\r\n        protocol: 'xxxx',\r\n        name: 'xxxx',\r\n        schemes: 'xxxx',\r\n      },\r\n    ],\r\n    afterCopy: [\r\n      (buildPath, electronVersion, platform, arch, callback) => {\r\n        rebuild({buildPath, electronVersion, arch})\r\n          .then(() => callback())\r\n          .catch(error => callback(error));\r\n      },\r\n    ],\r\n    packageManager: 'yarn',\r\n    icon: path.resolve(__dirname, 'static/icon.icns'),\r\n    ignore: [/\\.tsx?$/, /^\\/bin\\//, /\\/__mocks__\\//, /^\\/definitions\\//],\r\n  },\r\n  makers: [\r\n    {\r\n      name: '@electron-forge/maker-squirrel',\r\n    },\r\n    {\r\n      name: '@electron-forge/maker-zip',\r\n    },\r\n  ],\r\n  hooks: {\r\n    // Bug-- looks like electron-forge is reading THIS file instead of package.json\r\n    readPackageJson(obj) {\r\n      return packageJson;\r\n    },\r\n  },\r\n};\r\n```\r\n\r\n**Please provide either a failing minimal testcase (with a link to the code) or detailed steps to\r\nreproduce your problem. Using `electron-forge init` is a good starting point, if that is not the\r\nsource of your problem.**\r\nI will supply this if the above logs are not enough, please let me know (it's crunch time at work)\r\n\r\nUpon inspection, the temp folder contains only:\r\nBUILD\t\tREADME.md\r\n"}}
{"actor":{"display_login":"mako-taco"}}