Skip to content

Commit

Permalink
name and account change (#293)
Browse files Browse the repository at this point in the history
## Summary

## How was it tested?
  • Loading branch information
LucilleH authored Apr 9, 2024
1 parent c68757b commit 719841c
Show file tree
Hide file tree
Showing 47 changed files with 263 additions and 192 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Open Source Monorepo

Monorepo that serves as the source of truth for all open source projects published
by [jetpack.io](https://www.jetpack.io).
by [jetify](https://www.jetify.com).

Each project lives in its own directory and contains its own license.
Each project lives in its own directory and contains its own license.
16 changes: 10 additions & 6 deletions action-publish-code/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
# Publish Code (Github Action)

### Publish code between repositories while preserving history

![License: Apache 2.0](https://img.shields.io/github/license/jetpack-io/action-move-code)

## What is it?

A Github action that makes it easy to publish code from one git repository to another
while preserving history. One of the primary use cases is to mirror code from a directory
in a monorepo, and publish it as a standalone repository.

This action was originally built by [jetpack.io](https://www.jetpack.io). We
do most of our development in an [opensource monorepo](https://github.com/jetpack-io/opensource),
This action was originally built by [jetify](https://www.jetify.com). We
do most of our development in an [opensource monorepo](https://github.com/jetify-com/opensource),
and often publish some projects as separate repositories.

In fact, this very repository is published using this Github Action.

## Related Work
+ [Copybara](https://github.com/google/copybara): A tool written by Google to move
code between repositories. It is written in Java, and thus a bit heavyweight for
direct use. That said, a future version of this action could package Copybara in
an easier to use way.

- [Copybara](https://github.com/google/copybara): A tool written by Google to move
code between repositories. It is written in Java, and thus a bit heavyweight for
direct use. That said, a future version of this action could package Copybara in
an easier to use way.
2 changes: 1 addition & 1 deletion envsec/cmd/envsec/main.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 Jetpack Technologies Inc and contributors. All rights reserved.
// Copyright 2024 Jetify Inc. and contributors. All rights reserved.
// Use of this source code is governed by the license in the LICENSE file.

package main
Expand Down
2 changes: 1 addition & 1 deletion envsec/internal/build/build.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023 Jetpack Technologies Inc and contributors. All rights reserved.
// Copyright 2024 Jetify Inc. and contributors. All rights reserved.
// Use of this source code is governed by the license in the LICENSE file.

package build
Expand Down
4 changes: 2 additions & 2 deletions envsec/internal/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func GitSubdirectory(wd string) (string, error) {

// github
// git format git@github.com:jetpack-io/opensource.git
// https format https://github.com/jetpack-io/opensource.git
// https format https://github.com/jetify-com/opensource.git

// bitbucket

Expand All @@ -44,7 +44,7 @@ func GitSubdirectory(wd string) (string, error) {

// gh format is same as git
//
// normalized: github.com/jetpack-io/opensource
// normalized: github.com/jetify-com/opensource
func normalizeGitRepoURL(repoURL string) string {
result := strings.TrimSpace(repoURL)
if strings.HasPrefix(result, "git@") {
Expand Down
2 changes: 1 addition & 1 deletion envsec/internal/tux/style.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 Jetpack Technologies Inc and contributors. All rights reserved.
// Copyright 2024 Jetify Inc. and contributors. All rights reserved.
// Use of this source code is governed by the license in the LICENSE file.

package tux
Expand Down
2 changes: 1 addition & 1 deletion envsec/internal/tux/tux.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 Jetpack Technologies Inc and contributors. All rights reserved.
// Copyright 2024 Jetify Inc. and contributors. All rights reserved.
// Use of this source code is governed by the license in the LICENSE file.

package tux
Expand Down
2 changes: 1 addition & 1 deletion envsec/pkg/envcli/auth.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023 Jetpack Technologies Inc and contributors. All rights reserved.
// Copyright 2024 Jetify Inc. and contributors. All rights reserved.
// Use of this source code is governed by the license in the LICENSE file.

package envcli
Expand Down
2 changes: 1 addition & 1 deletion envsec/pkg/envcli/download.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 Jetpack Technologies Inc and contributors. All rights reserved.
// Copyright 2024 Jetify Inc. and contributors. All rights reserved.
// Use of this source code is governed by the license in the LICENSE file.

package envcli
Expand Down
2 changes: 1 addition & 1 deletion envsec/pkg/envcli/exec.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 Jetpack Technologies Inc and contributors. All rights reserved.
// Copyright 2024 Jetify Inc. and contributors. All rights reserved.
// Use of this source code is governed by the license in the LICENSE file.

package envcli
Expand Down
2 changes: 1 addition & 1 deletion envsec/pkg/envcli/flags.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023 Jetpack Technologies Inc and contributors. All rights reserved.
// Copyright 2024 Jetify Inc. and contributors. All rights reserved.
// Use of this source code is governed by the license in the LICENSE file.

package envcli
Expand Down
2 changes: 1 addition & 1 deletion envsec/pkg/envcli/gen-docs.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023 Jetpack Technologies Inc and contributors. All rights reserved.
// Copyright 2024 Jetify Inc. and contributors. All rights reserved.
// Use of this source code is governed by the license in the LICENSE file.

package envcli
Expand Down
2 changes: 1 addition & 1 deletion envsec/pkg/envcli/ls.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 Jetpack Technologies Inc and contributors. All rights reserved.
// Copyright 2024 Jetify Inc. and contributors. All rights reserved.
// Use of this source code is governed by the license in the LICENSE file.

package envcli
Expand Down
2 changes: 1 addition & 1 deletion envsec/pkg/envcli/rm.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 Jetpack Technologies Inc and contributors. All rights reserved.
// Copyright 2024 Jetify Inc. and contributors. All rights reserved.
// Use of this source code is governed by the license in the LICENSE file.

package envcli
Expand Down
2 changes: 1 addition & 1 deletion envsec/pkg/envcli/root.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 Jetpack Technologies Inc and contributors. All rights reserved.
// Copyright 2024 Jetify Inc. and contributors. All rights reserved.
// Use of this source code is governed by the license in the LICENSE file.

package envcli
Expand Down
2 changes: 1 addition & 1 deletion envsec/pkg/envcli/root_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 Jetpack Technologies Inc and contributors. All rights reserved.
// Copyright 2024 Jetify Inc. and contributors. All rights reserved.
// Use of this source code is governed by the license in the LICENSE file.

package envcli
Expand Down
2 changes: 1 addition & 1 deletion envsec/pkg/envcli/set.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 Jetpack Technologies Inc and contributors. All rights reserved.
// Copyright 2024 Jetify Inc. and contributors. All rights reserved.
// Use of this source code is governed by the license in the LICENSE file.

package envcli
Expand Down
2 changes: 1 addition & 1 deletion envsec/pkg/envcli/upload.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 Jetpack Technologies Inc and contributors. All rights reserved.
// Copyright 2024 Jetify Inc. and contributors. All rights reserved.
// Use of this source code is governed by the license in the LICENSE file.

package envcli
Expand Down
2 changes: 1 addition & 1 deletion envsec/pkg/envcli/usage.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 Jetpack Technologies Inc and contributors. All rights reserved.
// Copyright 2024 Jetify Inc. and contributors. All rights reserved.
// Use of this source code is governed by the license in the LICENSE file.

package envcli
Expand Down
2 changes: 1 addition & 1 deletion envsec/pkg/envcli/version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023 Jetpack Technologies Inc and contributors. All rights reserved.
// Copyright 2024 Jetify Inc. and contributors. All rights reserved.
// Use of this source code is governed by the license in the LICENSE file.

package envcli
Expand Down
2 changes: 1 addition & 1 deletion envsec/pkg/stores/ssmstore/parameter_store.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 Jetpack Technologies Inc and contributors. All rights reserved.
// Copyright 2024 Jetify Inc. and contributors. All rights reserved.
// Use of this source code is governed by the license in the LICENSE file.

package ssmstore
Expand Down
2 changes: 1 addition & 1 deletion envsec/pkg/stores/ssmstore/ssmstore.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 Jetpack Technologies Inc and contributors. All rights reserved.
// Copyright 2024 Jetify Inc. and contributors. All rights reserved.
// Use of this source code is governed by the license in the LICENSE file.

package ssmstore
Expand Down
2 changes: 1 addition & 1 deletion nixtest/.github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ⚠️ Submit PRs in our opensource monorepo instead ⚠️

This repository is automatically published from our opensource monorepo:
https://github.com/jetpack-io/opensource
https://github.com/jetify-com/opensource

If you want to contribute code changes to this project, please submit your
PR via the monorepo.
25 changes: 18 additions & 7 deletions nixtest/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# NixTest

### A tiny unit testing framework written in pure Nix

![License: Apache 2.0](https://img.shields.io/github/license/jetpack-io/nixtest)

## What is it?
Expand All @@ -8,13 +10,15 @@ NixTest is a simple unit testing framework for Nix, written in pure Nix.
It makes it easy to add tests throughout your nix code and run them all at once.

The framework was designed to be minimal: it is entirely self-contianed and
depends only on nix builtin functions. Specifically, it does *not* depend on `nixpkgs`,
depends only on nix builtin functions. Specifically, it does _not_ depend on `nixpkgs`,
which can get somewhat large as a dependency.

NixTest was originally built by [jetpack.io](https://www.jetpack.io) – the company behind [Devbox](https://github.com/jetpack-io/devbox) (one of the easiest ways to use Nix).
NixTest was originally built by [jetify](https://www.jetify.com) – the company behind [Devbox](https://github.com/jetify-com/devbox) (one of the easiest ways to use Nix).

## Usage

### 1. Import the library

To use the nixtest library, import it as an input in the flake where you are
writing tests, and call `nixtest.run <dir>` on the root directory:

Expand All @@ -30,11 +34,13 @@ writing tests, and call `nixtest.run <dir>` on the root directory:
```

### 2. Write your tests

To write tests, create files ending in `_test.nix`. If you are trying to test
a file named `foo.nix`, you should name your test file `foo_test.nix`.

The test file should evaluate to a list of test results, where each result has
the following schema:

```
{
name: string # The name of the test
Expand All @@ -47,6 +53,7 @@ The test framework will automatically check that `actual == expected`, and if it
isn't, it will throw an error indicating a failure.

This is what an example `lib_test.nix` file might look like:

```nix
let
lib = import ./lib.nix;
Expand All @@ -65,6 +72,7 @@ in [
```

### 3. Run your tests

Use `nix eval` to run your tests.

For example, if your flake has a `tests` attribute as in the example above,
Expand All @@ -75,11 +83,13 @@ nix eval .#tests
```

If all tests pass, you will see an output like this:

```
[PASS] 7/7 tests passed
```

If any tests fail, you will see an output like this:

```
error: 1/7 tests failed
[FAIL] Test function add
Expand All @@ -88,8 +98,9 @@ error: 1/7 tests failed
```

## Related Work
+ [runTests](https://nixos.org/manual/nixpkgs/stable/#function-library-lib.debug.runTests): A testing function included in `nixpkgs.lib.debug`. Probably the
most commonly used testing library for Nix. We recommend using it for cases
where you are ok depending on `nixpkgs`.
+ [Nixt](https://github.com/nix-community/nixt): Unit testing framework for Nix, written
in Typescript. Depends on both `nixpkgs` and `typescript`.

- [runTests](https://nixos.org/manual/nixpkgs/stable/#function-library-lib.debug.runTests): A testing function included in `nixpkgs.lib.debug`. Probably the
most commonly used testing library for Nix. We recommend using it for cases
where you are ok depending on `nixpkgs`.
- [Nixt](https://github.com/nix-community/nixt): Unit testing framework for Nix, written
in Typescript. Depends on both `nixpkgs` and `typescript`.
2 changes: 1 addition & 1 deletion pkg/api/.envrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@

eval "$(devbox generate direnv --print-envrc)"

# check out https://www.jetpack.io/devbox/docs/ide_configuration/direnv/
# check out https://www.jetify.com/devbox/docs/ide_configuration/direnv/
# for more details
2 changes: 1 addition & 1 deletion pkg/api/gen/priv/secrets/v1alpha1/secrets.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func storeDir() string {
if err != nil {
cacheDir = "~/.cache"
}
return filepath.Join(cacheDir, "jetpack.io", "auth")
return filepath.Join(cacheDir, "jetify", "auth")
}

func (c *Client) LoginFlow() (*session.Token, error) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/envvar/envvar.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023 Jetpack Technologies Inc and contributors. All rights reserved.
// Copyright 2024 Jetify Inc. and contributors. All rights reserved.
// Use of this source code is governed by the license in the LICENSE file.

package envvar
Expand Down
2 changes: 1 addition & 1 deletion typeid/typeid-go/.github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ⚠️ Submit PRs in our opensource monorepo instead ⚠️

This repository is automatically published from our opensource monorepo:
https://github.com/jetpack-io/opensource
https://github.com/jetify-com/opensource

If you want to contribute code changes to this project, please submit your
PR via the monorepo.
3 changes: 2 additions & 1 deletion typeid/typeid-go/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ When contributing to this repository, please describe the change you wish to mak
Please note we have a [code of conduct](CODE_OF_CONDUCT.md), please follow it in all your interactions with the project.

## Opening a Pull Request
This project is published as a standalone repo from our [opensource monorepo](https://github.com/jetpack-io/opensource).

This project is published as a standalone repo from our [opensource monorepo](https://github.com/jetify-com/opensource).
Pull requests should be sent to the monorepo instead, and they will automatically be published
to this repo when merged.

Expand Down
11 changes: 8 additions & 3 deletions typeid/typeid-go/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# TypeID Go
### A golang implementation of [TypeIDs](https://github.com/jetpack-io/typeid)

### A golang implementation of [TypeIDs](https://github.com/jetify-com/typeid)

![License: Apache 2.0](https://img.shields.io/github/license/jetpack-io/typeid-go) [![Go Reference](https://pkg.go.dev/badge/go.jetpack.io/typeid.svg)](https://pkg.go.dev/go.jetpack.io/typeid)

TypeIDs are a modern, **type-safe**, globally unique identifier based on the upcoming
UUIDv7 standard. They provide a ton of nice properties that make them a great choice
as the primary identifiers for your data in a database, APIs, and distributed systems.
Read more about TypeIDs in their [spec](https://github.com/jetpack-io/typeid).
Read more about TypeIDs in their [spec](https://github.com/jetify-com/typeid).

This particular implementation provides a go library for generating and parsing TypeIDs.

Expand All @@ -18,11 +20,12 @@ go get go.jetpack.io/typeid
```

## Usage

This library provides a go implementation of TypeID that allows you
to define your own custom id types for added compile-time safety.

If you don't need compile-time safety, you can use the provided `typeid.AnyID` directly:

```go
import (
"go.jetpack.io/typeid"
Expand All @@ -35,11 +38,13 @@ func example() {
```

If you want compile-time safety, define your own custom types with two steps:

1. Define a struct the implements the method `Prefix`. Prefix should return the
string that should be used as the prefix for your custom type.
2. Define you own id type, by embedding `typeid.TypeID[CustomPrefix]`

For example to define a UserID with prefix `user`:

```go
import (
"go.jetpack.io/typeid"
Expand Down
2 changes: 1 addition & 1 deletion typeid/typeid-go/doc.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// TypeIDs are a modern, **type-safe**, globally unique identifier based on the upcoming
// UUIDv7 standard. They provide a ton of nice properties that make them a great choice
// as the primary identifiers for your data in a database, APIs, and distributed systems.
// Read more about TypeIDs in their [spec](https://github.com/jetpack-io/typeid).
// Read more about TypeIDs in their [spec](https://github.com/jetify-com/typeid).

// This particular implementation provides a go library for generating and parsing TypeIDs
package typeid
2 changes: 1 addition & 1 deletion typeid/typeid-go/testdata/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
These test data files are a copy of the ones provided by the official
[TypeID specification](https://github.com/jetpack-io/typeid)
[TypeID specification](https://github.com/jetify-com/typeid)
2 changes: 1 addition & 1 deletion typeid/typeid-js/.github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ⚠️ Submit PRs in our opensource monorepo instead ⚠️

This repository is automatically published from our opensource monorepo:
https://github.com/jetpack-io/opensource
https://github.com/jetify-com/opensource

If you want to contribute code changes to this project, please submit your
PR via the monorepo.
3 changes: 2 additions & 1 deletion typeid/typeid-js/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ When contributing to this repository, please describe the change you wish to mak
Please note we have a [code of conduct](CODE_OF_CONDUCT.md), please follow it in all your interactions with the project.

## Opening a Pull Request
This project is published as a standalone repo from our [opensource monorepo](https://github.com/jetpack-io/opensource).

This project is published as a standalone repo from our [opensource monorepo](https://github.com/jetify-com/opensource).
Pull requests should be sent to the monorepo instead, and they will automatically be published
to this repo when merged.

Expand Down
Loading

0 comments on commit 719841c

Please sign in to comment.