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

Remove local replace directive from go.mod #288

Closed
wants to merge 1 commit into from

Conversation

elias-orijtech
Copy link

Replace directives disable external go run ... support:

% go run github.com/tulir/whatsmeow/mdtest@latest
go: github.com/tulir/whatsmeow/mdtest@latest (in github.com/tulir/whatsmeow/mdtest@v0.0.0-20221126173344-e660988acdbc):
	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.

A better way to develop multiple modules concurrently is with Go 1.18 workspaces[0].

[0] https://go.dev/blog/get-familiar-with-workspaces

Replace directives disable external `go run ...` support:

```
% go run github.com/tulir/whatsmeow/mdtest@latest
go: github.com/tulir/whatsmeow/mdtest@latest (in github.com/tulir/whatsmeow/mdtest@v0.0.0-20221126173344-e660988acdbc):
	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.
```

A better way to develop multiple modules concurrently is with Go 1.18 workspaces[0].

[0] https://go.dev/blog/get-familiar-with-workspaces
@tulir
Copy link
Owner

tulir commented Dec 6, 2023

Go workspaces don't work very nicely and mdtest should always use the latest version of whatsmeow, so I'll keep it as is

@tulir tulir closed this Dec 6, 2023
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.

2 participants