Can't build from source because of private packages in npm-shrinkwrap.json

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 4.8.2, 4.9.0
    • Affects Version/s: 4.8.0, 4.8.1
    • Component/s: None
    • None

      Summary

      Bitbucket Server 4.8.1 can't be built from source because the source distribution includes the npm-shrinkwrap.json file with references to private Atlassian NPM packages.

      Steps to Reproduce

      1. Build Bitbucket Server from the source code

      Expected Results

      Bitbucket Server is built successfully

      Actual Results

      A number of npm ERR! fetch failed are returned when building the source code are shown in the console output:

      [10:04:28][Step 2/2] [INFO] Running 'npm install' in /var/lib/teamcity/BuildAgents/buildAgent/work/70af3565b66e9e3c/bitbucket-parent/webapp/default/../..
      [10:04:28][Step 2/2] [ERROR] npm ERR! fetch failed https://npm-private.atlassian.io/@atlassian%2feslint-plugin-amd-checks/-/@atlassian%2feslint-plugin-amd-checks-1.0.0.tgz
      

      Workaround

      After unpacking sources delete the file bitbucket-parent/npm-shrinkwrap.json before building Bitbucket Server.

            Assignee:
            Unassigned
            Reporter:
            Marcin
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: