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

chore: Switch go-yaml library to Nobl9 fork #482

Merged
merged 4 commits into from
Jul 8, 2024

Conversation

nieomylnieja
Copy link
Collaborator

Motivation

Modules using nobl9-go cannot rely on replace clause in the SDK if they are using go-yaml package as well, in such scenario these modules have to using replace clause too and this in turn breaks go install, here's an example:

go install github.com/nobl9/sloctl/cmd/sloctl@latest
go: downloading github.com/nobl9/sloctl v0.3.2
go: github.com/nobl9/sloctl/cmd/sloctl@latest (in github.com/nobl9/[email protected]):
	The go.mod file for the module providing named packages contains one or
	more replace directives. It must not contain directives that would cause
	it to be interpreted differently than if it were the main module.

.golangci.yml Outdated Show resolved Hide resolved
Co-authored-by: kskitek <[email protected]>
@nieomylnieja nieomylnieja merged commit ea8a2e1 into main Jul 8, 2024
5 checks passed
@nieomylnieja nieomylnieja deleted the switch-go-yaml-library-to-nobl9-fork branch July 8, 2024 07:40
nieomylnieja added a commit to nobl9/sloctl that referenced this pull request Jul 8, 2024
## Motivation

The `replace` clause in `go.mod` was causing `go install` to fail with:

```
go install [github.com/nobl9/sloctl/cmd/sloctl@latest](http://github.com/nobl9/sloctl/cmd/sloctl@latest)
go: downloading [github.com/nobl9/sloctl](http://github.com/nobl9/sloctl) v0.3.2
go: [github.com/nobl9/sloctl/cmd/sloctl@latest](http://github.com/nobl9/sloctl/cmd/sloctl@latest) (in [github.com/nobl9/[email protected]](http://github.com/nobl9/[email protected])):
    The go.mod file for the module providing named packages contains one or
    more replace directives. It must not contain directives that would cause
```

## Related changes

- nobl9/nobl9-go#482

## Release Notes

Fixed `go install` malfunction introduced in `v0.3.2` caused by
`replace` clause in `go.mod`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants