cloudfoundry / buildpack-packager

Buildpack Packager
Apache License 2.0
23 stars 31 forks source link

cflinuxfs2 - showing error #16

Closed hemantlahoti closed 6 years ago

hemantlahoti commented 7 years ago

The manifest does not conform to the schema: ': invalid 0 value.yml:19:3 [/dependencies/0/cf_stacks/0] 'cflinuxfs2

Manifest File:

language: go

url_to_dependency_map:

default_versions:

dependencies:

exclude_files:

cf-gitbot commented 7 years ago

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/151749893

The labels on this github issue will be updated when the story is started.

sclevine commented 6 years ago

Hi @killer-imaniac,

I'm not sure what your question is. Can you provide more details? What command are you running, and what output do you see?

hemantlahoti commented 6 years ago

Hi @sclevine, Command I ran was: $ bundle install $ buildpack-packager --uncached

After the second command, it is showing error:

The manifest does not conform to the schema: ': invalid 0 value.yml:19:3 [/dependencies/0/cf_stacks/0] 'cflinuxfs2

I have also provided the manifest file I am using.

sclevine commented 6 years ago

Works for me with the latest version of buildpack-packager:

liberty:buildpack-packager-16 pivotal$ cat Gemfile
# frozen_string_literal: true
source "https://rubygems.org"
gem 'buildpack-packager', git: 'https://github.com/cloudfoundry-incubator/buildpack-packager'
liberty:buildpack-packager-16 pivotal$ cat manifest.yml
---
language: go

url_to_dependency_map:
- match: go-(\d+\.\d+\.\d+)
  name: go
  version: $1

default_versions:
- name: go
  version: 1.5.4

dependencies:
- name: go
  version: 1.5.4
  uri: https://storage.googleapis.com/golang/go1.5.4.linux-amd64.tar.gz
  md5: 27b1c469797292064c65c995ffe30386
  cf_stacks:
  - cflinuxfs2

exclude_files:
  - .gitignore
  - private.key
liberty:buildpack-packager-16 pivotal$ bundle exec buildpack-packager --uncached
Uncached buildpack created and saved as /Users/pivotal/workspace/buildpacks/issues/buildpack-packager-16/go_buildpack-v0.0.1.zip with a size of 4.0K

It's worth noting that this repo (along with compile-extensions) will soon be deprecated in favor of libbuildpack.

hemantlahoti commented 6 years ago

I dont know why it is not working for me. I am following the same procedures with same files.

Error I am getting after command $ bundle exec buildpack-packager --uncached :

$ bundle exec buildpack-packager --uncached The manifest does not conform to the schema: ': invalid 0 value.yml:18:7 [/dependencies/0/cf_stacks/0] 'cflinuxfs2 ': invalid 0 value.yml:24:7 [/dependencies/1/cf_stacks/0] 'cflinuxfs2 /var/lib/gems/2.3.0/bundler/gems/buildpack-packager-fcfd9704ee70/bin/buildpack-packager:69:in <top (required)>': undefined methodjoin' for nil:NilClass (NoMethodError) from /var/lib/gems/2.3.0/bin/buildpack-packager:23:in load' from /var/lib/gems/2.3.0/bin/buildpack-packager:23:in

'

Version of buildpack-packager : 2.3.10. Am I missing any other dependency?

sclevine commented 6 years ago

Is it possible that you have Windows line endings in your copy of manifest.yml?

Also, make sure your Gemfile looks like the one I provided.

hemantlahoti commented 6 years ago

Thanks for the Reply. My Copy of Gemfile:

source "https://rubygems.org"

Specify your gem's dependencies in buildpack-packager.gemspec

gem 'buildpack-packager', git: 'https://github.com/cloudfoundry-incubator/buildpack-packager'

And Manifest is the same I provided above. It doesn't have any Windows line endings.

hemantlahoti commented 6 years ago

Sorry the comment became a heading in the above comment. Below is my copy of Gemfile. It is the same as you have used.

$ cat Gemfile source "https://rubygems.org" gem 'buildpack-packager', git: 'https://github.com/cloudfoundry-incubator/buildpack-packager'