Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn build--touch_overridden_files=* failed due to "no such file or directory" #434

Closed
simonhong opened this issue Jun 27, 2018 · 0 comments
Assignees
Labels

Comments

@simonhong
Copy link
Member

--touch_overridden_files doesn't consider generated files.
So, it doesn't try to check overridden files in src/out/.../gen.

simon-home:brave-browser simonhong$ yarn build Release --no_branding_update --touch_overridden_files=*
yarn run v1.5.1
$ node ./scripts/commands.js build Release --no_branding_update '--touch_overridden_files=*'
touch original files overridden by chromium_src...
/Volumes/SSD/brave/brave-browser/src/chrome/browser/browser_about_handler.cc is touched.
/Volumes/SSD/brave/brave-browser/src/chrome/browser/component_updater/widevine_cdm_component_installer.cc is touched.
/Volumes/SSD/brave/brave-browser/src/chrome/browser/ui/webui/help/version_updater_mac.h is touched.
/Volumes/SSD/brave/brave-browser/src/chrome/browser/ui/webui/help/version_updater_mac.mm is touched.
/Volumes/SSD/brave/brave-browser/src/chrome/common/chrome_icon_resources_win.h is touched.
/Volumes/SSD/brave/brave-browser/src/chrome/common/extensions/chrome_manifest_handlers.cc is touched.
/Volumes/SSD/brave/brave-browser/src/chrome/common/url_constants.cc is touched.
fs.js:1214
  binding.utimes(pathModule._makeLong(path), atime, mtime);
          ^

Error: ENOENT: no such file or directory, utime '/Volumes/SSD/brave/brave-browser/src/chrome/grit/generated_resources.h'
    at Object.fs.utimesSync (fs.js:1214:11)
    at sourceFiles.forEach.file (/Volumes/SSD/brave/brave-browser/lib/build.js:43:8)
    at Array.forEach (<anonymous>)
    at touchOverriddenFiles (/Volumes/SSD/brave/brave-browser/lib/build.js:40:15)
    at Command.build (/Volumes/SSD/brave/brave-browser/lib/build.js:53:5)
    at Command.listener (/Volumes/SSD/brave/brave-browser/node_modules/commander/index.js:315:8)
    at emitTwo (events.js:126:13)
    at Command.emit (events.js:214:7)
    at Command.parseArgs (/Volumes/SSD/brave/brave-browser/node_modules/commander/index.js:651:12)
    at Command.parse (/Volumes/SSD/brave/brave-browser/node_modules/commander/index.js:474:21)
error An unexpected error occurred: "Command failed.
Exit code: 1
Command: sh
Arguments: -c node ./scripts/commands.js build Release --no_branding_update '--touch_overridden_files=*'
Directory: /Volumes/SSD/brave/brave-browser
Output:
".
info If you think this is a bug, please open a bug report with the information provided in "/Volumes/SSD/brave/brave-browser/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
simon-home:brave-browser simonhong$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants