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

Support pure go+ module #1056

Closed
cpunion opened this issue Dec 13, 2021 · 1 comment
Closed

Support pure go+ module #1056

cpunion opened this issue Dec 13, 2021 · 1 comment
Assignees
Labels
Milestone

Comments

@cpunion
Copy link
Contributor

cpunion commented Dec 13, 2021

Proposal

1. Support import a pure go+ package in the current project

E.g. a project structure like the below:

├── foo
│   └── foo.gop
├── go.mod
├── go.sum
├── gop.mod
└── main.gop

It should be possible to import the package foo from main.gop directly.

2. Support import a pure go+ module on the GitHub

It should be possible to import "github.com/x/y" or import "github.com/x/y/z", when github.com/x/y is a pure go+ module, and the package y is a pure go+ package in it.

Background

To develop a go+ project, we want to write pure go+ code everywhere, we also want to publish the pure go+ modules.

Workarounds

For the packages in your project

Use https://github.com/cosmtrek/air to watch *.gop files changes, and run gop build ./....

For the packages from the other modules

Nothing.

@xushiwei xushiwei added the bug label Dec 14, 2021
@xushiwei xushiwei added this to the Go+ v1.1 milestone Dec 14, 2021
@xushiwei xushiwei added this to To do in Go+ v1.1 Features via automation Dec 14, 2021
@xushiwei xushiwei moved this from To do to In progress in Go+ v1.1 Features Dec 14, 2021
@xushiwei xushiwei self-assigned this Dec 14, 2021
@xushiwei
Copy link
Member

xushiwei commented Jan 5, 2022

@xushiwei xushiwei closed this as completed Jan 5, 2022
Go+ v1.1 Features automation moved this from In progress to Done Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Development

No branches or pull requests

2 participants