Skip to content
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

Go - Support projects with embed files #434

Merged
merged 4 commits into from
Nov 7, 2023
Merged

Conversation

Or-Geva
Copy link
Contributor

@Or-Geva Or-Geva commented Oct 19, 2023

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • I used npm run format for formatting the code before submitting the pull request.

Projects in Go that involve embedded files encounter an error when attempting to construct the dependency tree.
The issue place in how we convert all "replace" labels in the go.mod file from relative to absolute paths before gathering dependencies for all projects. During this process, we exclude any files that do not have a ".go" extension. Consequently, this exclusion results in missing embedded files, leading to an error when using the "go list" command.

As a solution, we restrict the exclusion to specific, well-known folders that are safe to omit, such as "testdata" or ".git."

Fix #372

@Or-Geva Or-Geva requested a review from yahavi October 19, 2023 14:21
@Or-Geva Or-Geva added the safe to test Approve running integration tests on a pull request label Oct 19, 2023
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Oct 19, 2023
@Or-Geva Or-Geva requested review from attiasas and eyalbe4 October 31, 2023 11:43
src/main/utils/goUtils.ts Outdated Show resolved Hide resolved
src/main/utils/goUtils.ts Outdated Show resolved Hide resolved
src/main/utils/goUtils.ts Outdated Show resolved Hide resolved
src/main/utils/goUtils.ts Outdated Show resolved Hide resolved
src/test/tests/goUtils.test.ts Outdated Show resolved Hide resolved
@Or-Geva Or-Geva added bug Something isn't working safe to test Approve running integration tests on a pull request labels Nov 7, 2023
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Nov 7, 2023
@Or-Geva Or-Geva added the safe to test Approve running integration tests on a pull request label Nov 7, 2023
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Nov 7, 2023
@Or-Geva Or-Geva merged commit a27a255 into jfrog:master Nov 7, 2023
5 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[go:embed] Unable to get golang project using go:embed module to properly scan
2 participants