-
-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to ignore certain folders? #304
Comments
Seems like a duplicate of #250 |
@cwrau you can probably move |
Actually not, as I'm in CI in gitlab and can only cache folders inside the project directory, which is the git tree, which is the right where the main go.mod lies 😅 |
@cwrau it's hard to figure out your setup with the info provided. Can you give a link to your ci setup/scripts? |
It's nothing special, I'm checking out the repo, with Currently I'm already workarounding this with I'd rather do the opposite and exclude |
I'm still missing some bits information here so I have to guess/assume/imagine a few things. Not seeing the full picture makes it harder to help, and might render my answers less useful (or just plain wrong). Surely, I can ask more questions about your setup details (which might be obvious to you but not me), but this is not the place to do so. But let's go one step back.
I believe you still can do that (move .go out of your source tree), and there are many ways to do so:
|
Of those three, number one would be the most likely one we'd be inclined to try, but I think we'd rather wait on #250, however I managed to miss that issue before creating this one 😅 But that does sound like it would work 👍 |
Indeed this is a duplicate of #250, as @kolyshkin points out. See #250 (comment). |
In gitlab CI we'd like to cache the go packages, via
GOPATH=$CI_PROJECT_DIR/.go
, but this tool then fails to run , as it tries to format.go/pkg/mod/github.com/onsi/ginkgo/[email protected]/integration/_fixtures/reporting_fixture/malformed_sub_package/malformed_sub_package_suite_test.go:15:1: expected declaration, found NO_COMPILE
Is there a way to ignore a folder? Or maybe generally
GOPATH
? Or stuff inside hidden directories?The text was updated successfully, but these errors were encountered: