Error while using fluid-publish to publish a dev version of Infusion

Justin Obara obara.justin at gmail.com
Sat Oct 24 02:21:44 UTC 2015


Hi Colin,

In regards to the extra “-dev” that’s because the fluid-publish will add the pre-release version based on the “devTag” option. 
https://github.com/fluid-project/fluid-publish/blob/master/README.md#dev This means that the version in Infusion will need to be changed to a full release version number. I had talked to Antranig about this in the channel. It was decided that the package.json is expected to contain the version of the next stable release.
https://github.com/fluid-project/fluid-publish/pull/1#discussion_r42398535

I’m not exactly sure about the issue with the dist-tag. Which version of NPM are you running?

Could you try to manually run this command and see if it works.
"npm dist-tag add infusion at 2.0.0-dev-dev.20151024T010910Z.d1e5b8d dev”

Actually, I think I have an idea of what’s wrong. If the above works, I think there may be a newline character after the commit hash that is causing the problem. If you see your log below, the “dev” tag comes on a separate line from the rest of the command.

Please let me know if that helps.

Thanks
Justin


On October 23, 2015 at 9:21:04 PM, Clark, Colin (cclark at ocadu.ca) wrote:

Hey Justin and Antranig,  

I tried out the awesome new fluid-publish package today. I wanted to publish a dev version of Infusion after merging in Antranig's new performance optimizations of events and invokers.  

After running the "fluid-publish" command, it seems to have successfully published a version, but threw an error in the process. Also, the version string has an additional -dev on it. Here's the output of my attempt:  

[colin at 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 at 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)  


[colin at tofino infusion (master *$=)]$ npm view infusion versions  

[ '2.0.0-dev.20151007T134312Z.8c33cd4',  
'2.0.0-dev-dev.20151024T010910Z.d1e5b8d' ]  

Any ideas what happened?  

Colin  

---  
Colin Clark  
Lead Software Architect,  
Inclusive Design Research Centre, OCAD University  
http://inclusivedesign.ca  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idrc.ocad.ca/pipermail/fluid-work/attachments/20151023/33e06e2b/attachment.html>


More information about the fluid-work mailing list