Tutoral pkg_source


#1

Just double-checking.

I’m getting a 404 error in my tutorial on downloading the archive.
Because the “Review Source Files” step says we need not do anything with them, just study them, and the “Creating Your First Plan” step says to set the source to that AWS URI, approached it as if that would work.
My relevant plan template bits:

pkg_origin=stackihab
pkg_name=mytutorialapp
pkg_version=0.1.0
pkg_maintainer="Your Name "
pkg_license=()
pkg_source=https://s3-us-west-2.amazonaws.com/{pkg_name}-{pkg_version}.tar.gz
pkg_shasum=b54f8ada292b0249245385996221751f571e170162e0d464a26b958478cc9bfa
pkg_filename={pkg_name}-{pkg_version}.tar.gz
pkg_deps=(core/node)
pkg_expose=(8080)

Assume that I’ve got something wrong (assuming I’m missing something obvious here), or will need to create the archive somewhere and update pkg_source, just not certain which.

Error is:

–2016-06-17 17:39:02-- https://s3-us-west-2.amazonaws.com/mytutorialapp-0.1.0.tar.gz
Resolving s3-us-west-2.amazonaws.com (s3-us-west-2.amazonaws.com)… 54.231.168.220
Connecting to s3-us-west-2.amazonaws.com (s3-us-west-2.amazonaws.com)|54.231.168.220|:443… connected.
HTTP request sent, awaiting response… 404 Not Found
2016-06-17 17:39:02 ERROR 404: Not Found.

Thanks,
Don.


#2

Hello -

The pkg_source value you are using is missing a pkg_name value:

pkg_source=https://s3-us-west-2.amazonaws.com/{pkg_name}/{pkg_name}-${pkg_version}.tar.gz

Note that pkg_name appears twice. I copied this URL above directly from the tutorial.

The generated URL looks like this:

https://s3-us-west-2.amazonaws.com/mytutorialapp/mytutorialapp-0.1.0.tar.gz

which I can successfully wget.

Cheers -
Dave


#3

That did it, thanks. I thought I’d cut-n-pasted it, but appears not.

Don.