Uploaded image for project: 'Fluid Infusion'
  1. Fluid Infusion
  2. FLUID-5798

fluid-publish fails to apply the NPM tag

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Build Scripts
    • Labels:
      None

      Description

      When trying to apply an NPM dist-tag an error occurs. It appears that the cause of this is that the command to get the revision number from git returns with a new line character at the end. This in turn pushes the tag name onto a new line, which results in an error where the "latest" tag has already been applied and there is no command called "dev".

      Console Error:
      [colin@tofino infusion (master $=)]$ fluid-publish
      npm WARN dist-tag add latest is already set to version 2.0.0-dev-dev.20151024T010910Z.d1e5b8d
      /bin/sh: line 1: dev: command not found
      child_process.js:484
      throw err;
      ^

      Error: Command failed: npm dist-tag add infusion@2.0.0-dev-dev.20151024T010910Z.d1e5b8d
      dev
      npm WARN dist-tag add latest is already set to version 2.0.0-dev-dev.20151024T010910Z.d1e5b8d
      /bin/sh: line 1: dev: command not found

      at checkExecSyncError (child_process.js:441:13)
      at Object.execSync (child_process.js:481:13)
      at Object.publish.tag (/usr/local/lib/node_modules/fluid-publish/publish.js:202:17)
      at Object.publish.dev (/usr/local/lib/node_modules/fluid-publish/publish.js:257:13)
      at Object.<anonymous> (/usr/local/lib/node_modules/fluid-publish/publish.js:291:17)
      at Module._compile (module.js:435:26)
      at Object.Module._extensions..js (module.js:442:10)
      at Module.load (module.js:356:32)
      at Function.Module._load (module.js:311:12)
      at Function.Module.runMain (module.js:467:10)

        Attachments

          Activity

            People

            Assignee:
            jobara Justin Obara
            Reporter:
            jobara Justin Obara
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: