---
title: "Discussion on \"How To fix gopls was not able to find modules\" | Hashnode"
description: "Discussion on \"How To fix gopls was not able to find modules\". How to fix gopls was not able to find modules in your workspace.\nWhen outside of GOPATH, gopls needs to know which modules you are working on."
url: "https://hashnode.com/posts/how-to-fix-gopls-was-not-able-to-find-modules/65658a6b1a1c7550e0d5b854"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How To fix gopls was not able to find modules](https://adnwalkar.hashnode.dev/how-to-fix-gopls-was-not-able-to-find-modules?utm_source=hashnode&utm_medium=feed)

How to fix gopls was not able to find modules in your workspace. When outside of GOPATH, gopls needs to know which modules you are working on.

Nov 28, 2023 · 2 min read · adnwalkar.hashnode.dev  
Read the article

-   [#gopls](https://hashnode.com/tag/gopls)
-   [#programming](https://hashnode.com/tag/programming)
-   [#azure](https://hashnode.com/tag/azure)
-   [#google](https://hashnode.com/tag/google)

## Written by

[Aditya Narayan Nayak](https://hashnode.com/@Aditya-Narayan-Nayak)

@Aditya-Narayan-Nayak · JEYPORE, ODISHA, INDIA

  
[View profile](https://hashnode.com/@Aditya-Narayan-Nayak)

SRE | DevSecOps | I Do what I Love!

DevOps Engineer At OD10Ventures. A Kubernetes Administrator. Contributor on opensource. I Talk about K8s, containers, DevOps, and CNCF Tools.

## Responses 1

Markdown supported · ⌘↵ to post

[Aman sarraf](https://hashnode.com/@AmanSarraf)

[Nov 28, 2023](https://hashnode.com/posts/how-to-fix-gopls-was-not-able-to-find-modules/65658a6b1a1c7550e0d5b854/comment/6565e7ef44ab01484e918779)

Very insightful
