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 1.11 module support #189

Merged
merged 6 commits into from
Dec 2, 2019
Merged

Go 1.11 module support #189

merged 6 commits into from
Dec 2, 2019

Conversation

cosmos72
Copy link
Member

  • update go.mod to latest gomacro for runtime support of Go 1.11 modules:
    import "/path/to/some/package" is now module-aware
  • require Go compiler >= 1.11, the first version with modules support
  • delete vendor/ directory, replaced by versioned dependencies in go.mod

Open for review & testing

…les:

  import "/path/to/some/package" is now module-aware
* require Go compiler >= 1.11, the first version with modules support
* delete vendor/ directory, replaced by versioned dependencies in go.mod

import (
"github.com/cosmos72/gomacro/base/paths"
i "github.com/cosmos72/gomacro/imports"
Copy link
Contributor

@kortschak kortschak Nov 29, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any particular reason for this import rename?

Copy link
Member Author

@cosmos72 cosmos72 Nov 30, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically, it's not required.
I just preferred not to import a package named "imports" from another package named "imports" too.
Maybe something like "base" or "baseimports" is clearer?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It shouldn't be a concern. There's no conflict since a package never sees its own name, and this file is very small, so there's no confusion.

Copy link
Member Author

@cosmos72 cosmos72 Nov 30, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, replaced the import i "..." with a plain import "..."

Copy link
Contributor

@kortschak kortschak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This worked for me.

@cosmos72 cosmos72 merged commit f601dca into master Dec 2, 2019
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