Skip to content

Commit 39d2e38

Browse files
committed
fix posthog
1 parent 0883564 commit 39d2e38

File tree

7 files changed

+11
-5
lines changed

7 files changed

+11
-5
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pipx run --path restack_get_started/main.py
2525
## How to release
2626

2727
1. Increment version in all occurences (makefile, pyproject, package.json)
28-
2. `git tag v0.6.13`
28+
2. `git tag v0.6.18`
2929
3. `git push --tags`
3030

3131
At this moment, Github detects new version tag and builds and publishes

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ require (
2323
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect
2424
github.com/muesli/cancelreader v0.2.2 // indirect
2525
github.com/muesli/termenv v0.15.3-0.20240618155329-98d742f6907a // indirect
26+
github.com/posthog/posthog-go v1.2.24 // indirect
2627
github.com/rivo/uniseg v0.4.7 // indirect
2728
golang.org/x/sync v0.8.0 // indirect
2829
golang.org/x/sys v0.26.0 // indirect

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ github.com/muesli/termenv v0.15.2 h1:GohcuySI0QmI3wN8Ok9PtKGkgkFIk7y6Vpb5PvrY+Wo
4242
github.com/muesli/termenv v0.15.2/go.mod h1:Epx+iuz8sNs7mNKhxzH4fWXGNpZwUaJKRS1noLXviQ8=
4343
github.com/muesli/termenv v0.15.3-0.20240618155329-98d742f6907a h1:2MaM6YC3mGu54x+RKAA6JiFFHlHDY1UbkxqppT7wYOg=
4444
github.com/muesli/termenv v0.15.3-0.20240618155329-98d742f6907a/go.mod h1:hxSnBBYLK21Vtq/PHd0S2FYCxBXzBua8ov5s1RobyRQ=
45+
github.com/posthog/posthog-go v1.2.24 h1:A+iG4saBJemo++VDlcWovbYf8KFFNUfrCoJtsc40RPA=
46+
github.com/posthog/posthog-go v1.2.24/go.mod h1:uYC2l1Yktc8E+9FAHJ9QZG4vQf/NHJPD800Hsm7DzoM=
4547
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
4648
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
4749
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=

makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
BINARY_NAME=restack-get-started
2-
VERSION=0.6.17
2+
VERSION=0.6.18
33
BUILD_DIR=build
44

55
.PHONY: all linux macos clean

npm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@restackio/get-started",
3-
"version": "0.6.17",
3+
"version": "0.6.18",
44
"description": "A getting started command which will help with a first application using Restack framework",
55
"bin": {
66
"get-started": "get-started.sh"

pypi/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "restackio.get-started"
3-
version = "0.6.17"
3+
version = "0.6.18"
44
readme = "README.md"
55
description = "A package to get started with Restack"
66
authors = ["Your Name <[email protected]>"]

src/main.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,15 @@ type model struct {
1919

2020
func main() {
2121
// Initialize PostHog client
22-
client := posthog.NewWithConfig(
22+
client, err := posthog.NewWithConfig(
2323
"phc_QAChHsfb5cq65wolzsxiJ6cZk1V9IcfGqCidBWhaLgK",
2424
posthog.Config{
2525
Endpoint: "https://us.i.posthog.com",
2626
},
2727
)
28+
if err != nil {
29+
log.Fatal(err)
30+
}
2831
defer client.Close()
2932

3033
language := validateLanguage()

0 commit comments

Comments
 (0)