Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support paket pack #174

Open
haf opened this issue Aug 11, 2015 · 8 comments
Open

Support paket pack #174

haf opened this issue Aug 11, 2015 · 8 comments

Comments

@haf
Copy link
Member

haf commented Aug 11, 2015

To replace nuget pack.

Work begun: https://github.com/Albacore/albacore/tree/feature/paket-pack

@wallymathieu
Copy link
Contributor

Where the script assumes that paket.bootstrapper.exe is in .paket folder in the same directory as rakefile?

@haf
Copy link
Member Author

haf commented Aug 26, 2015

Currently assumes it's in tools/paket.bootstrapper.exe - dotfiles and -folders are annoying during cross-platform dev, because they aren't shown with the default ls commands. I linked to the cli that can bootstrap an albacore project in a couple of seconds above.

@wallymathieu
Copy link
Contributor

If you interact with paket using rake then it doesn't need to be annoying. Also, it could be good to follow how the paket documentation tells you how to set it up.

@haf
Copy link
Member Author

haf commented Aug 26, 2015

Yes, the CLI doesn't download the full paket, for example, and taken together with your flag it could work really nicely.

@wallymathieu
Copy link
Contributor

I've added a gem: paket bootstrapper
based on: nuget gem
that initially only contains the bootstrapper in order to simplify things for me.

@haf
Copy link
Member Author

haf commented Aug 26, 2015

That's a good way of doing it. Should you add the binary as well, to the gem?

@wallymathieu
Copy link
Contributor

The only binary I've added to the gem is the bootstrapper, since I imagine the use case being to run paket.bootstrapper and then paket in your scripts.

For nuget exe I've used:

spec = Gem::Specification.find_by_name("nuget")
command = File.join(spec.gem_dir, "bin", "nuget.exe")

in order to get the location of the binary (but since nuget-gem is updated to work on both windows and *nix you could just use sh "nuget ..." or similar)

@wallymathieu
Copy link
Contributor

I've fixed so that the paket.exe is downloaded if it's missing:
https://github.com/wallymathieu/paketbootstrapper-gem/blob/master/_template/bin/paket#L5

haf added a commit that referenced this issue Feb 13, 2016
@haf haf removed the help wanted label Feb 13, 2016
haf added a commit that referenced this issue Nov 4, 2016
@haf haf closed this as completed Sep 4, 2017
@haf haf reopened this Sep 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants