Skip to content

Commit

Permalink
chore: switch back to main fern repo
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed Nov 12, 2024
1 parent 1c91728 commit b3ac018
Show file tree
Hide file tree
Showing 959 changed files with 667 additions and 38,582 deletions.
28 changes: 28 additions & 0 deletions docs-old/infrastructure/legacy/fern/OSS_SETUP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Fern OSS Setup

To install fern, first clone the repo and check out the branch

```shell
$ git clone https://github.com/rivet-gg/fern
$ cd fern
$ git checkout max/remove-headers
```

Then, follow the instructions in SETUP.md and CONTRIBUTING.md to compile fern

```shell
yarn
yarn compile
yarn dist:cli:dev
docker image ls | grep fern
docker builder prune
yarn workspace @fern-typescript/sdk-generator-cli run dockerTagVersion:browser 999.999.999
yarn workspace @fern-api/openapi-generator run dockerTagVersion 999.999.999
```

Finally, run this with the path to the fern repo, say:

```shell
FERN_REPO_PATH=~/fern ./oss/scripts/fern/gen.sh
```

2 changes: 0 additions & 2 deletions packages/api/cloud/src/route/bootstrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ pub async fn build_bootstrap_data(
}),
login_methods: Box::new(models::CloudBootstrapLoginMethods {
email: server_config.sendgrid.is_some(),
// Deprecated
access_token: false,
}),
deploy_hash: rivet_env::source_hash().to_string(),
})
Expand Down
165 changes: 0 additions & 165 deletions packages/common/convert/src/impls/admin.rs

This file was deleted.

38 changes: 2 additions & 36 deletions scripts/fern/gen_inner.sh
Original file line number Diff line number Diff line change
@@ -1,43 +1,9 @@
#!/usr/bin/env bash
set -euf -o pipefail

# FERN_NO_VERSION_REDIRECTION=true FERN_DISABLE_TELEMETRY=true fern generate --local --group $FERN_GROUP --log-level debug

# To install fern, first clone the repo and check out the branch
# $ git clone https://github.com/rivet-gg/fern
# $ cd fern
# $ git checkout max/remove-headers
#
# Then, follow the instructions in SETUP.md and CONTRIBUTING.md to compile fern
# $ yarn
# $ yarn compile
# $ yarn dist:cli:dev
# $ docker image ls | grep fern
# $ docker builder prune
# $ yarn workspace @fern-typescript/sdk-generator-cli run dockerTagVersion:browser 999.999.999
#
# If needed:
# $ yarn workspace @fern-api/openapi-generator run dockerTagVersion 999.999.999
#
# Finally, run this with the path to the fern repo, say:
# $ FERN_REPO_PATH=~/fern ./oss/scripts/fern/gen.sh

set +u
if [ -z "$FERN_REPO_PATH" ]; then
echo 'Please clone and build https://github.com/rivet-gg/fern/tree/max/remove-headers and set $FERN_REPO_PATH. This is a workaround until https://github.com/fern-api/fern/pull/2551 is resolved.'
exit 1
fi
set -u

# Generate typescript SDK docker image
if ! docker images | grep -w "^fernapi/fern-typescript-browser-sdk.*999\.999\.999" > /dev/null; then
echo "Generating TypeScript SDK"
(cd "$FERN_REPO_PATH" && nix-shell -p yarn --run 'yarn workspace @fern-typescript/sdk-generator-cli dockerTagVersion:browser 999.999.999')
fi

# Generate Fern libraries
echo "Using Fern from $FERN_REPO_PATH"
(cd sdks && FERN_NO_VERSION_REDIRECTION=true FERN_DISABLE_TELEMETRY=true node "$FERN_REPO_PATH/packages/cli/cli/dist/dev/cli.cjs" generate --local --group $FERN_GROUP --log-level debug)
echo "Using Fern"
(cd sdks && FERN_NO_VERSION_REDIRECTION=true FERN_DISABLE_TELEMETRY=true npx -p fern-api fern generate --local --group $FERN_GROUP --log-level debug)

# Add missing deps
(cd sdks/$FERN_GROUP/typescript && nix-shell -p jq --run 'jq ".devDependencies[\"@types/node-fetch\"] = \"2.6.11\"" package.json > package.json.tmp && mv package.json.tmp package.json')
Expand Down
2 changes: 1 addition & 1 deletion sdks/fern/definition/identity/common.yml

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

67 changes: 0 additions & 67 deletions sdks/full/go/admin/admin.go

This file was deleted.

Loading

0 comments on commit b3ac018

Please sign in to comment.