passbolt / passbolt_browser_extension

Browser extensions (Firefox, Edge & Chrome) for Passbolt the open source password manager for teams
https://passbolt.com
GNU Affero General Public License v3.0
233 stars 72 forks source link

The browser extension doesn't build by default #66

Closed aubincleme closed 5 years ago

aubincleme commented 5 years ago

The browser extension doesn't build by default

What you did

Steps to reproduce :

git clone https://github.com/passbolt/passbolt_browser_extension.git
cd passbolt_browser_extension
npm install
./node_modules/.bin/grunt

At this point, we see a first build error :

caubin@t580:~/tmp/passbolt_browser_extension (master*=) % ./node_modules/.bin/grunt
Running "copy:background_page" (copy) task
Copied 1 file

Running "copy:content_scripts" (copy) task
Created 10 directories, copied 12 files

Running "browserify:app" (browserify) task
>> Error: Cannot find module '../model/gpgauth' from '/home/caubin/tmp/passbolt_browser_extension/src/all/background_page/event'
Warning: Error running grunt-browserify. Use --force to continue.

Aborted due to warnings.

Even though we know that the build won't succeed, we can still try with grunt --force :

caubin@t580:~/tmp/passbolt_browser_extension (master*=) % ./node_modules/.bin/grunt --force
Running "copy:background_page" (copy) task
Copied 1 file

Running "copy:content_scripts" (copy) task
Created 10 directories, copied 12 files

Running "browserify:app" (browserify) task
>> Error: Cannot find module '../error/invalidMasterPasswordError' from '/home/caubin/tmp/passbolt_browser_extension/src/all/background_page/event'
Warning: Error running grunt-browserify. Used --force, continuing.
>> Error: Cannot find module '../model/gpgauth' from '/home/caubin/tmp/passbolt_browser_extension/src/all/background_page/event'
Warning: Error running grunt-browserify. Used --force, continuing.
Fatal error: Callback was already called.

What happened

It looks like two files in he repository do not have the correct case:

Fixing those two files by either renaming them or creating symlinks also fixes the build.

What you expected to happen

The build should succeed when cloning the repository.

fthzkrtn commented 5 years ago

Worked. Thanks.

stripthis commented 5 years ago

Fixed with v2.10.2