# Deep file link assumes "src" dir exists

**URL:** <https://community.codecov.com/t/deep-file-link-assumes-src-dir-exists/2440>\
**Category:** Uncategorized\
**Created:** [December 28, 2020, 4:06pm UTC](https://community.codecov.com/t/deep-file-link-assumes-src-dir-exists/2440 "2020-12-28T16:06:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ljharb](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/ljharb/32/580_2.png) [@ljharb](https://community.codecov.com/u/ljharb)\
**Post date:** [December 28, 2020, 4:06pm UTC](https://community.codecov.com/t/deep-file-link-assumes-src-dir-exists/2440/1 "2020-12-28T16:06:27Z")

</div>

[https://codecov.io/gh/es-shims/es-set/tree/main/lib](https://codecov.io/gh/es-shims/es-set/tree/main/lib) refers to a repo that has a “lib” dir, but has no build process and thus has no “src” dir.

However, the links to individual files on that page include “src” in the URL - a string that does not appear anywhere in the repository. Those links give me a 404 with a hint about path fixing - but if i manually change the “src” in the URL to “lib”, i get to a page slightly closer to what i expect: [https://codecov.io/gh/es-shims/es-map/tree/main/lib/helpers.js](https://codecov.io/gh/es-shims/es-map/tree/main/lib/helpers.js) (but it’s probably also a bug that this page loads, since this path isn’t a “tree” at all)

Is the relationship between the purely conventional “src → lib” hardcoded somewhere inside codecov? Is there a way I can avoid needing a codecov.yml in my repo to be able to drill down into these files?

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [December 28, 2020, 7:03pm UTC](https://community.codecov.com/t/deep-file-link-assumes-src-dir-exists/2440/2 "2020-12-28T19:03:41Z")

</div>

@ljharb, I think I’m missing something. I can click on those links without a problem. Can you give a more step-by-step reproduction?

---

<div class="post-metadata">

**Author:** ![ljharb](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/ljharb/32/580_2.png) [@ljharb](https://community.codecov.com/u/ljharb)\
**Post date:** [December 28, 2020, 7:18pm UTC](https://community.codecov.com/t/deep-file-link-assumes-src-dir-exists/2440/3 "2020-12-28T19:18:39Z")

</div>

Hmm, it works for me now. Perhaps the links 404’d until the coverage data was processed, at which point it began to work?

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [December 28, 2020, 7:23pm UTC](https://community.codecov.com/t/deep-file-link-assumes-src-dir-exists/2440/4 "2020-12-28T19:23:03Z")

</div>

Hmm… that would be my guess. If you are able to reproduce, let me know and we can dig into it. As far as I know, we don’t do any `src -> lib` assumptions.
