# \[Bug\]: Create collections/\_cupcakes folder when building my Jekyll site with CI/CD

**URL:** <https://talk.jekyllrb.com/t/bug-create-collections-cupcakes-folder-when-building-my-jekyll-site-with-ci-cd/7836>\
**Category:** Help\
**Created:** [November 25, 2022, 9:43pm UTC](https://talk.jekyllrb.com/t/bug-create-collections-cupcakes-folder-when-building-my-jekyll-site-with-ci-cd/7836 "2022-11-25T21:43:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![csharpee](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/csharpee/32/5313_2.png) [@csharpee](https://talk.jekyllrb.com/u/csharpee)\
**Post date:** [November 25, 2022, 9:43pm UTC](https://talk.jekyllrb.com/t/bug-create-collections-cupcakes-folder-when-building-my-jekyll-site-with-ci-cd/7836/1 "2022-11-25T21:43:24Z")

</div>

### Operating System

linux ruby:latest

### Ruby Version

3.1.2

### Jekyll Version

4.2.2

### GitHub Pages Version

NA

### Expected Behavior

When collections/ **\_cupcakes** folder is added to _\_config.yml_ create custom folder on _bundle exec jekyll build --verbose --trace_ aka jekyll build.

I ran into a troublesome bug, maybe I am doing something wrong here, but on my CI/CD, I kept getting an error and couldn’t pin point it down because the **collections/\_posts** folder was being created without any trouble, but the **\_cupcakes** folder and files kept populating the error:

```auto
bundler: failed to load command: jekyll (/usr/local/bundle/bin/jekyll)

<internal:dir>:98:in `open': No such file or directory @ dir_initialize - ./collections/_cupcakes/ (Errno::ENOENT)

```

I am able to manually create this folder with Ruby, but shouldn’t Jekyll do this?

### Current Behavior

```auto
bundler: failed to load command: jekyll (/usr/local/bundle/bin/jekyll)

<internal:dir>:98:in `open': No such file or directory @ dir_initialize - ./collections/_cupcakes/ (Errno::ENOENT)

```

### Config Code Sample

My \_config.yml snippet:

```auto
# Collection configuration
# These collections will sort types of products and loop through that
# type to be displayed on a page. As an example, I have 10 "3D" items, all 10 items
# will be displayed when a category is selected on the product main index page.
collections_dir: collections

collections:
  products:
    output: true # true or false
    permalink: /products/:path/

```

---

<div class="post-metadata">

**Author:** ![csharpee](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/csharpee/32/5313_2.png) [@csharpee](https://talk.jekyllrb.com/u/csharpee)\
**Post date:** [November 25, 2022, 10:02pm UTC](https://talk.jekyllrb.com/t/bug-create-collections-cupcakes-folder-when-building-my-jekyll-site-with-ci-cd/7836/2 "2022-11-25T22:02:05Z")

</div>

Doing something like this manually has resolved the conflict, but maybe my \_config.yml is funky?

```auto
      # manually create custom collection folders [bug: shouldn't Jekyll do this? https://github.com/jekyll/jekyll/issues/9193]
      if not Dir.exist?("./collections/_products")
        Jekyll.logger.info "the Jekyll products directory does not exist, let's create one".to_s.red
        Dir.mkdir("./collections/_products/")
        Jekyll.logger.info "DIR DEBUG: The local ./collections/_products directory is created at: ./collections/_products/".to_s.yellow
      end

```

---

<div class="post-metadata">

**Author:** ![rdyar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rdyar/32/710_2.png) [@rdyar](https://talk.jekyllrb.com/u/rdyar)\
**Post date:** [November 25, 2022, 10:33pm UTC](https://talk.jekyllrb.com/t/bug-create-collections-cupcakes-folder-when-building-my-jekyll-site-with-ci-cd/7836/3 "2022-11-25T22:33:20Z")

</div>

your collection name is products? but you are saying cupcakes? which is it?

I’d remove the permalink just to see if anything changes.
