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.mod: remove exclude github.com/mattn/go-sqlite3 #693

Merged
merged 1 commit into from
May 16, 2024

Conversation

mvo5
Copy link
Contributor

@mvo5 mvo5 commented May 16, 2024

This directive was added in commit 29f66a2 to workaround an issue with the github.com/containers/image/v5 v5.22 where some misconfiguration/misrelease of go-sqlite caused problems.

This seems to be no longer necessary, I followed the reproducer steps from the original commit and see no errors (anymore).

The reason this is useful is so that we run the gen-manifests command directly via go run. Right now it will error with:

$ go run github.com/osbuild/images/cmd/gen-manifests@latest
go: github.com/osbuild/images/cmd/gen-manifests@latest (in github.com/osbuild/images@v0.61.0):
	The go.mod file for the module providing named packages contains one or
	more exclude directives. It must not contain directives that would cause
	it to be interpreted differently than if it were the main module.

(c.f. golang/go#40276).

Removing the exclude shoudl fix that.

This directive was added in commit 29f66a2 to workaround an
issue with the github.com/containers/image/v5 v5.22 where some
misconfiguration/misrelease of go-sqlite caused problems.

This seems to be no longer necessary, I followed the reproducer
steps from the original commit and see no errors (anymore).

The reason this is useful is so that we run the gen-manifests
command directly via `go run`. Right now it will error with:
```
$ go run github.com/osbuild/images/cmd/gen-manifests@latest
go: github.com/osbuild/images/cmd/gen-manifests@latest (in github.com/osbuild/images@v0.61.0):
	The go.mod file for the module providing named packages contains one or
	more exclude directives. It must not contain directives that would cause
	it to be interpreted differently than if it were the main module.
```
(c.f. golang/go#40276).

Removing the `exclude` shoudl fix that.
@mvo5 mvo5 requested a review from ondrejbudai May 16, 2024 15:29
mvo5 added a commit to mvo5/osbuild-composer that referenced this pull request May 16, 2024
This is a result of the outcome of
osbuild#4124

Achilleas suggested that instead of having a copy of `gen-manifests`
in osbuild-composer we could use the one from images. AFAICT nothing
in the code references `gen-manifests` except the `test/README` so
it seems safe to remove and just run the one from images.

Note that osbuild/images#693 needs to
land before:
```
go run github.com/osbuild/images/cmd/gen-manifests@latest
```
works.
@mvo5 mvo5 enabled auto-merge May 16, 2024 16:40
@mvo5 mvo5 disabled auto-merge May 16, 2024 16:41
@achilleas-k achilleas-k added this pull request to the merge queue May 16, 2024
Merged via the queue into osbuild:main with commit f85f503 May 16, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants