Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref: Fix auth token env variable wording in flutter and apple wizards #853

Merged
merged 5 commits into from
Mar 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@

- feat: Add `coming-from` parameter ([#837](https://github.com/getsentry/sentry-wizard/pull/837))
- feat(deps): Bump axios from 1.7.4 to 1.8.2 ([#844](https://github.com/getsentry/sentry-wizard/pull/844))
- ref: Reword Replay feature selection ([#847](https://github.com/getsentry/sentry-wizard/pull/847))
- feat(sourcemaps): Remove NextJS and Remix flows from sourcemaps wizard ([#849](https://github.com/getsentry/sentry-wizard/pull/849))

The NextJS and Remix flows have been removed when running the wizard with `npx @sentry/wizard -i sourcemaps`.
Please use `npx @sentry/wizard -i nextjs` and `npx @sentry/wizard -i remix` instead.
The NextJS and Remix flows have been removed when running the wizard with `npx @sentry/wizard -i sourcemaps`.
Please use `npx @sentry/wizard -i nextjs` and `npx @sentry/wizard -i remix` instead.
- ref: Reword Replay feature selection ([#847](https://github.com/getsentry/sentry-wizard/pull/847))
- ref: Fix auth token env variable wording in flutter and apple wizards ([#853](https://github.com/getsentry/sentry-wizard/pull/853))

## 4.2.0

Expand Down
10 changes: 9 additions & 1 deletion src/apple/apple-wizard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
// @ts-ignore - clack is ESM and TS complains about that. It works though
import clack from '@clack/prompts';
import chalk from 'chalk';
import * as fs from 'fs';
import * as path from 'path';
import { XcodeProject } from './xcode-manager';
Expand Down Expand Up @@ -128,7 +129,14 @@ async function runAppleWizardWithTelementry(

SentryUtils.createSentryCLIRC(projectDir, { auth_token: apiKey.token });
clack.log.info(
'We created a ".sentryclirc" file in your project directory in order to provide an auth token for Sentry CLI.\nIt was also added to your ".gitignore" file.\nAt your CI enviroment, you can set the SENTRY_AUTH_TOKEN environment variable instead. See https://docs.sentry.io/cli/configuration/#auth-token for more information.',
`Created a ${chalk.cyan(
'.sentryclirc',
)} file in your project directory to provide an auth token for Sentry CLI.

It was also added to your ${chalk.cyan('.gitignore')} file.
Set the ${chalk.cyan(
'SENTRY_AUTH_TOKEN',
)} environment variable in your CI environment. See https://docs.sentry.io/cli/configuration/#auth-token for more information.`,
);

let hasCocoa = cocoapod.usesCocoaPod(projectDir);
Expand Down
8 changes: 6 additions & 2 deletions src/flutter/flutter-wizard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,13 @@ async function runFlutterWizardWithTelemetry(
);
} else {
clack.log.info(
`We created ${chalk.cyan(
`Created a ${chalk.cyan(
'sentry.properties',
)} file in your project directory in order to provide an auth token for Sentry CLI.\nIt was also added to your ".gitignore" file.\nAt your CI enviroment, you can set the SENTRY_AUTH_TOKEN environment variable instead. See https://docs.sentry.io/cli/configuration/#auth-token for more information.`,
)} file in your project directory to provide an auth token for Sentry CLI.
It was also added to your ${chalk.cyan('.gitignore')} file.
Set the ${chalk.cyan(
'SENTRY_AUTH_TOKEN',
)} environment variable in your CI environment. See https://docs.sentry.io/cli/configuration/#auth-token for more information.`,
);
}
Sentry.setTag('sentry-properties-added', pubspecPatched);
Expand Down
Loading