cloudfoundry/buildpack-packager

cflinuxfs2 - showing error

hemantlahoti opened this issue · 8 comments

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:

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

default_versions:

  • name: go
    version: 1.5.4

dependencies:

exclude_files:

  • .gitignore
  • private.key

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.

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?

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.

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.

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 method join' 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?

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.

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.

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'