pact-foundation / pact-mock_service

Provides a mock service for use with Pact
https://pact.io
MIT License
73 stars 69 forks source link

fixing wrapper to work with both symlinked and non-symlinked files #24

Closed mboudreau closed 9 years ago

mboudreau commented 9 years ago

This will fix https://github.com/bethesque/pact-mock-service-npm/issues/1 for both linux and osx. The bat file seems to already work with the Windows packaging.

Is it possible to repackage after this so that the latest can be used in node?

Cheers.

bethesque commented 9 years ago

Thanks!

mboudreau commented 9 years ago

Can you please do a new release? We could really use it here.

Thanks.

On Thu, Aug 27, 2015, 1:00 PM Beth Skurrie notifications@github.com wrote:

Thanks!

— Reply to this email directly or view it on GitHub https://github.com/bethesque/pact-mock_service/pull/24#issuecomment-135264222 .

bethesque commented 9 years ago

Already on it.

bethesque commented 9 years ago

Windows is out, the other ones are coming https://www.npmjs.com/package/pact-mock-service-win32

bethesque commented 9 years ago

All done.

mboudreau commented 9 years ago

You are an absolute legend.

On Thu, Aug 27, 2015, 1:42 PM Beth Skurrie notifications@github.com wrote:

All done.

— Reply to this email directly or view it on GitHub https://github.com/bethesque/pact-mock_service/pull/24#issuecomment-135280345 .

mboudreau commented 9 years ago

@bethesque Just tried it out. The Windows one is out and working, but the linux/osx one is still pointing to the last version (0.5.2-2). Looking at npmjs.org, it's the same thing there.

mboudreau commented 9 years ago

@bethesque I could really use this for today. Don't want to rush you and I'd be happy to do it if I knew how.

bethesque commented 9 years ago

It seems to have rebuilt the old version for some reason, trying a clean build again.

mboudreau commented 9 years ago

thanks.

On Fri, Aug 28, 2015 at 9:15 AM Beth Skurrie notifications@github.com wrote:

It seems to have rebuilt the old version for some reason, trying a clean build again.

— Reply to this email directly or view it on GitHub https://github.com/bethesque/pact-mock_service/pull/24#issuecomment-135580496 .

bethesque commented 9 years ago

Ah, something seems to be different in npm land. The commands that I used to publish yesterday are not working today...

dist $ npm publish pact-mock-service-linux-x86.tar.gz
npm ERR! Darwin 14.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "publish" "pact-mock-service-linux-x86.tar.gz"
npm ERR! node v0.12.7
npm ERR! npm  v2.12.1
npm ERR! code E404

npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/pact-mock-service-linux-x86.tar.gz
npm ERR! 404
npm ERR! 404 'pact-mock-service-linux-x86.tar.gz' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/bethanyskurrie/workspace/rea/biq/pact-mock-service-npm/dist/npm-debug.log
bethesque commented 9 years ago

Ok, worked it out, the package names have changed (someone else did that for me) but the docs weren't updated, so I published using the old package names. Try again now.

mboudreau commented 9 years ago

Cool, seems that a lot of them updated, however, there's still some package names with the old version: https://www.npmjs.com/search?q=pact-mock-service

Like linux-x86, linux-x86_64 and osx. I think the names might of changed though, to darwin from osx, x64 from x86_64 and ia32 from x86. If that's the case, it might be good to mention this somewhere or maybe deprecate those npm packages.

Thanks for all your help.

On Fri, Aug 28, 2015 at 9:34 AM Beth Skurrie notifications@github.com wrote:

Ok, worked it out, the package names have changed (someone else did that for me) but the docs weren't updated, so I published using the old package names. Try again now.

— Reply to this email directly or view it on GitHub https://github.com/bethesque/pact-mock_service/pull/24#issuecomment-135584232 .

bethesque commented 9 years ago

Yes, they did change, is there an npm way to deprecate things?

mboudreau commented 9 years ago

You can use the deprecate or unpublish command from the CLI.

https://www.npmjs.com/package/deprecate https://docs.npmjs.com/cli/unpublish

On Fri, Aug 28, 2015 at 10:00 AM Beth Skurrie notifications@github.com wrote:

Yes, they did change, is there an npm way to deprecate things?

— Reply to this email directly or view it on GitHub https://github.com/bethesque/pact-mock_service/pull/24#issuecomment-135587849 .

mboudreau commented 9 years ago

I've just tested it on all OS's, everything's working fine :)

On Fri, Aug 28, 2015 at 10:01 AM Michel Boudreau michelboudreau@gmail.com wrote:

You can use the deprecate or unpublish command from the CLI.

https://www.npmjs.com/package/deprecate https://docs.npmjs.com/cli/unpublish

On Fri, Aug 28, 2015 at 10:00 AM Beth Skurrie notifications@github.com wrote:

Yes, they did change, is there an npm way to deprecate things?

— Reply to this email directly or view it on GitHub https://github.com/bethesque/pact-mock_service/pull/24#issuecomment-135587849 .

bethesque commented 8 years ago

Have finally released this! Apologies it took so long.

mboudreau commented 8 years ago

Is there a way to document the release process so that we don't have a single person that has to do it?

On Wed, Oct 7, 2015, 9:19 PM Beth Skurrie notifications@github.com wrote:

Have finally released this! Apologies it took so long.

— Reply to this email directly or view it on GitHub https://github.com/bethesque/pact-mock_service/pull/24#issuecomment-146143700 .

bethesque commented 8 years ago

For the npm project, it's in CONTRIBUTING.md