Comments (5)
With the Java SDK and the Node SDK, we automate every push to main, but that creates a SNAPSHOT/prerelease build respectively. These aren't "official" releases, but release-candidates.
I think if we build something from main, it would ideally be like that. Seems like similar idioms exist in golang: https://go.dev/doc/modules/release-workflow#pre-releaseo
from go-sdk.
Hi, just wanted to mention that the very popular goreleaser project also supports "releasing" libraries. Using it in the context of github actions, this would just give us a little neat automation around changelog generation and creating the github releases. I've just played with it recently using a dummy repository and it worked quite nice.
from go-sdk.
Should we automate the creation of a release on every merge to main
?
Or should we expect the releases to be created manually and have an action that listens to that event?
@toddbaert @beeme1mr @james-milligan
from go-sdk.
I can see from the Node SDK implementation that no "official" github tag/release is created as npm
handles the package's release process.
Golang's process works differently in that as long as the module is public it is directly accessible. For example one can go get
the module at any commit using its hash:
go get github.com/open-feature/golang-sdk@7c8080bebe44e8e0bb7eb25645e5da76a6296d03
The act of "publishing" here would be to create a tag. If we only create a tag (without a release) then in my opinion this would behave as a release candidate.
from go-sdk.
Hi, just wanted to mention that the very popular goreleaser project also supports "releasing" libraries. Using it in the context of github actions, this would just give us a little neat automation around changelog generation and creating the github releases. I've just played with it recently using a dummy repository and it worked quite nice.
Thank you for pointing us to that @warber, I followed your footsteps and forked the example repo to have a play with it myself.
We can combine github-tag-action with goreleaser to automate the creation of a tag on merge to main
and subsequently the go release process using the created tag. We can mark the releases as prerelease in the .goreleaser.yaml
config file until the first official release.
The github tag action defaults to bumping by a minor version (e.g. v0.1.0 to v0.2.0) but you can specify how to bump the version in the commit message (#patch
/ #minor
/ #major
).
I've created a PR with the config needed to make the above happen.
After discussion we've opted for the approach of manual tag creation (must be prefixed with v
e.g. v0.1.9
) that triggers the goreleaser
process. I've created a PR with the config needed to make this happen.
from go-sdk.
Related Issues (20)
- Update README to be consistent with other SDKs
- Changes to support spec `v0.6.0` compliance HOT 4
- implement named client support: open-feature/spec@4cf8229 HOT 1
- implement initialization/shutdown: open-feature/spec@a4ffec3
- Implement event support HOT 1
- Conform to spec `v0.7.0` HOT 6
- event handlers should run immediately if the associated provider is in the state associated with that handler already
- [FEATURE] Follow official Go guidance on how to organize a module? HOT 9
- [FEATURE] Follow up for 227 HOT 2
- [BUG] Panic when following getting started tutorial HOT 2
- [FEATURE] Blocking provider mutator HOT 1
- [FEATURE] Expose domain specific provider metadata getter HOT 1
- [FEATURE] Upgrade to Go version 1.20
- [FEATURE] Implement transaction context HOT 5
- [FEATURE] Implement domain scoping HOT 2
- [FEATURE] Make provider interface "stateless", SDK maintains provider state
- Should retrieving a value really provide an error? HOT 5
- [FEATURE] Move to log/slog logging HOT 2
- [BUG] Awkward usage when trying to evaluate a boolean flag in a complex conditional HOT 8
- [FEATURE] New test-oriented client HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-sdk.