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

feat(golang): Support Multi-version and root level modules #34

Merged
merged 38 commits into from
Feb 11, 2021

Conversation

iliapolo
Copy link
Contributor

@iliapolo iliapolo commented Feb 4, 2021

The script will now support both root level modules, and modules located in subdirectories.

Sub modules

dist/go/
├── constructs/
│   ├── go.mod
│   ├── ...

Root modules

dist/jsii-runtime-go/
├─ go.mod
├─ ...

The script also supports a combined structure, in which case it knows to differentiate between root and sub modules for correctly creating the tags.

And oh yeah, it's completely re-written in TypeScript :)

Fixes #28
Fixes #33

@iliapolo iliapolo requested a review from eladb February 4, 2021 15:20
README.md Outdated Show resolved Hide resolved
bin/jsii-release-golang Outdated Show resolved Hide resolved
bin/jsii-release-golang Outdated Show resolved Hide resolved
bin/jsii-release-golang Outdated Show resolved Hide resolved
bin/jsii-release-golang Outdated Show resolved Hide resolved
bin/jsii-release-golang Outdated Show resolved Hide resolved
bin/jsii-release-golang Outdated Show resolved Hide resolved
bin/jsii-release-golang Outdated Show resolved Hide resolved
bin/jsii-release-golang Outdated Show resolved Hide resolved
bin/jsii-release-golang Outdated Show resolved Hide resolved
@iliapolo iliapolo marked this pull request as ready for review February 9, 2021 10:43
@iliapolo iliapolo requested a review from eladb February 9, 2021 10:49
@iliapolo
Copy link
Contributor Author

iliapolo commented Feb 9, 2021

@eladb Have another look? There's a lot here because of a bunch of test fixtures and the switch to an updated projen TypeScriptProject.

src/bin/jsii-release-golang.ts Outdated Show resolved Hide resolved
src/go.ts Outdated Show resolved Hide resolved
src/go.ts Outdated Show resolved Hide resolved
src/go.ts Outdated Show resolved Hide resolved
src/go.ts Outdated Show resolved Hide resolved
src/go.ts Outdated Show resolved Hide resolved
src/go.ts Outdated Show resolved Hide resolved
src/go.ts Outdated Show resolved Hide resolved
src/go.ts Outdated Show resolved Hide resolved
@iliapolo iliapolo requested a review from eladb February 10, 2021 12:19
Copy link
Contributor

@eladb eladb left a comment

Choose a reason for hiding this comment

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

Wow

.projenrc.js Outdated Show resolved Hide resolved
src/help/git.ts Outdated Show resolved Hide resolved
src/help/git.ts Outdated Show resolved Hide resolved
src/help/git.ts Outdated Show resolved Hide resolved
src/targets/go.ts Outdated Show resolved Hide resolved
@eladb eladb added the pr/do-not-merge This PR should not be merged at this time. label Feb 11, 2021
@eladb
Copy link
Contributor

eladb commented Feb 11, 2021

Added do not merge

@iliapolo iliapolo removed the pr/do-not-merge This PR should not be merged at this time. label Feb 11, 2021
@iliapolo iliapolo merged commit 4ef7d59 into master Feb 11, 2021
@iliapolo iliapolo deleted the epolon/golang-support-root-modules branch February 11, 2021 10:04
mergify bot pushed a commit to projen/projen that referenced this pull request Aug 26, 2024
Removes the `githubRepo` from `projen.release.GoPublishOptions` and `projen.jsii.JsiiGoTarget`. This option was removed in publib over 3 years ago via cdklabs/publib#34 and had no effect. It was just just confusing for users.

Adds the `versionSuffix` option which has been supported by jsii for a while.

---
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants