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

Add 'stack sdist' command #654

Merged
merged 1 commit into from
Jul 22, 2015
Merged

Add 'stack sdist' command #654

merged 1 commit into from
Jul 22, 2015

Conversation

mgsloan
Copy link
Contributor

@mgsloan mgsloan commented Jul 22, 2015

No description provided.

@@ -574,6 +579,18 @@ uploadCmd args go = do
(tarName, tarBytes) <- getSDistTarball pkgDir
liftIO $ Upload.uploadBytes uploader tarName tarBytes

sdistCmd :: [String] -> GlobalOpts -> IO ()
sdistCmd [] _ = error "To create an sdist tarball for the current package, please run 'stack sdist .'"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the sdist case, I think defaulting to current directory is fine. This is in contradiction to stack upload, since the latter has major side-effects.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point!

@snoyberg
Copy link
Contributor

Just had the one comment, once that's resolved feel free to merge.

@mgsloan
Copy link
Contributor Author

mgsloan commented Jul 22, 2015

As discussed elsewhere, now stack sdist with no arguments builds tarballs for all packages.

mgsloan added a commit that referenced this pull request Jul 22, 2015
@mgsloan mgsloan merged commit ba5bc52 into master Jul 22, 2015
@mgsloan mgsloan deleted the sdist-command branch August 9, 2015 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants