# Sonarqube doesn't see code files in Golang

**URL:** <https://community.sonarsource.com/t/sonarqube-doesnt-see-code-files-in-golang/42247>\
**Category:** SonarQube Server / Community Build\
**Tags:** sonargo, go, sonarqube\
**Created:** [April 26, 2021, 7:25am UTC](https://community.sonarsource.com/t/sonarqube-doesnt-see-code-files-in-golang/42247 "2021-04-26T07:25:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ella](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ella/32/18300_2.png) [@ella](https://community.sonarsource.com/u/ella)\
**Post date:** [April 26, 2021, 7:25am UTC](https://community.sonarsource.com/t/sonarqube-doesnt-see-code-files-in-golang/42247/1 "2021-04-26T07:25:34Z")

</div>

I’m trying to make sonarqube “see” a directory in Golang. I’ve replaced the add\_executables command with gobuild and it sees the directory but doesn’t see the code in the subdirectories.All the code from the subdirectories was added in the add\_executables command (eg src/utilities.go) but now with go build I dont know how to include the files.  
Any guesses?

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [April 26, 2021, 8:34am UTC](https://community.sonarsource.com/t/sonarqube-doesnt-see-code-files-in-golang/42247/2 "2021-04-26T08:34:20Z")

</div>

Hey Ella.

Please stick a single thread per topic. I’ll close this one – feel free to add additional information to your existing topic.

> [@Only new code appearing on Sonarqube](https://community.sonarsource.com/t/only-new-code-appearing-on-sonarqube/42145):
>
> I’m trying to make sonarqube “see” my go directory from gitlab. I’ve replaced my add\_executables with gobuild and sonarqube detects the directory(the branch that I’m working on in the directory). However only new code appears and in the code tab I see no files. Can anyone help with the issue? Here is what sonarqube displays: In my sonarqube log I get the following: However it says 28 files indexed,9 analysed and Calculating CPD for 12 files

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [April 26, 2021, 8:34am UTC](https://community.sonarsource.com/t/sonarqube-doesnt-see-code-files-in-golang/42247/3 "2021-04-26T08:34:22Z")

</div>


