# Issue with defining source code in guild.yml

**URL:** https://guildai.org/t/issue-with-defining-source-code-in-guild-yml/833
**Category:** Troubleshooting
**Created:** [March 15, 2022, 1:09am UTC](https://guildai.org/t/issue-with-defining-source-code-in-guild-yml/833 "2022-03-15T01:09:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sjoshi804](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@sjoshi804](https://guildai.org/u/sjoshi804)
#### Post date: [March 15, 2022, 1:09am UTC](https://guildai.org/t/issue-with-defining-source-code-in-guild-yml/833/1 "2022-03-15T01:09:44Z")

</div>

```nohighlight
sort_sv_by_score:
  description: Runs validation of sorting singular vectors by score
  main: tests/sort_sv_by_score
  sourcecode:
    -exclude: '*.json'

```

This is my guild.yml file. I have a bunch of .json files in my directory (my results logs from previous experiments). When I run this operation though, despite specifying exclude, it attempts to copy over all the .json files.

---

<div class="post-metadata">

### Author: ![garrett](https://yyz1.discourse-cdn.com/flex031/user_avatar/guildai.org/garrett/32/224_2.png) [@garrett](https://guildai.org/u/garrett)
#### Post date: [March 19, 2022, 5:57pm UTC](https://guildai.org/t/issue-with-defining-source-code-in-guild-yml/833/2 "2022-03-19T17:57:15Z")

</div>

Hi and welcome! I’m sorry you’re running into this. The issue is subtle — you need a space between the dash and your `exclude`.

Here’s a sample project that illustrates the issue:

> **[issue-resolution/my.guild.ai-833-issue-with-defining-source-code-in-guild-yml at...](https://github.com/guildai/issue-resolution/tree/master/my.guild.ai-833-issue-with-defining-source-code-in-guild-yml)**
>
> master/my.guild.ai-833-issue-with-defining-source-code-in-guild-yml

The Guild file:

> <https://github.com/guildai/issue-resolution/blob/master/my.guild.ai-833-issue-with-defining-source-code-in-guild-yml/guild.yml>

Guild should give you some help here, not just ignore the issue! I’ll look into what’s going on so others don’t need to face this.

---

<div class="post-metadata">

### Author: ![garrett](https://yyz1.discourse-cdn.com/flex031/user_avatar/guildai.org/garrett/32/224_2.png) [@garrett](https://guildai.org/u/garrett)
#### Post date: [March 19, 2022, 6:46pm UTC](https://guildai.org/t/issue-with-defining-source-code-in-guild-yml/833/3 "2022-03-19T18:46:26Z")

</div>

The next release of Guild will warn you when it sees something like this. Sorry again for the frustation!

---

<div class="post-metadata">

### Author: ![sjoshi804](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@sjoshi804](https://guildai.org/u/sjoshi804)
#### Post date: [March 22, 2022, 5:48am UTC](https://guildai.org/t/issue-with-defining-source-code-in-guild-yml/833/4 "2022-03-22T05:48:56Z")

</div>

Thank you, appreciate the prompt response!
