目录

KubeCon Contribfest 2023

Let’s work on the NATS Go client!

Slides

image

https://docs.google.com/presentation/d/1SSCq53PMCd65pKsx3TZcAi19Huz0PGmdY4GuMex2ppc/edit?usp=sharing

Getting started

First, you will need to clone the NATS go repository:

git clone https://github.com/nats-io/nats.go

There we have setup two different branches to the nats.go repository (kc-contrib-vnext and kc-contrib-main)

  • kc-contrib-vnext

    Send PRs to the ideas with backwards incompatible changes here.

  • kc-contrib-main

    In this branch, we will try to upstream the changes to the main branch

Then, look for one of the issues here and send a PR to the branch that matches the label from the issue.

Running the tests

To run the tests from the client can be done as follows:

go test ./... -race --count=1 -p=1 -modfile=go_test.mod

Notice the -modfile=go_test.mod, we do this to be able to split test dependencies notably the NATS Server. This way we avoid the client depending on the server (which itself depends on the nats.go client 🌀.

Slack

Join the NATS community Slack channel! https://nats.io/community/ There you can find a #kubecon-contribfest channel for this session.

关于
34.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号