Skip to content

Commit dbb03b4

Browse files
authored
Fixed broken links on expermient pages (#3776)
1 parent 65c42c2 commit dbb03b4

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

cli/commands/flags.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -540,12 +540,12 @@ func NewGlobalFlags(opts *options.TerragruntOptions) cli.Flags {
540540
Name: TerragruntExperimentModeFlagName,
541541
EnvVar: TerragruntExperimentModeEnvName,
542542
Destination: &opts.ExperimentMode,
543-
Usage: "Enables experiment mode for Terragrunt. For more information, see https://terragrunt.gruntwork.io/docs/reference/experiment-mode .",
543+
Usage: "Enables experiment mode for Terragrunt. For more information, see https://terragrunt.gruntwork.io/docs/reference/experiments/ .",
544544
},
545545
&cli.SliceFlag[string]{
546546
Name: TerragruntExperimentFlagName,
547547
EnvVar: TerragruntExperimentEnvName,
548-
Usage: "Enables specific experiments. For a list of available experiments, see https://terragrunt.gruntwork.io/docs/reference/experiment-mode .",
548+
Usage: "Enables specific experiments. For a list of available experiments, see https://terragrunt.gruntwork.io/docs/reference/experiments/ .",
549549
Action: func(ctx *cli.Context, val []string) error {
550550
experiments := experiment.NewExperiments()
551551
warning, err := experiments.ValidateExperimentNames(val)

internal/experiment/experiment.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// By default experiment mode is disabled, but when enabled, experimental features can be enabled.
33
// These features are not yet stable and may change in the future.
44
//
5-
// Note that any behavior outlined here should be documented in /docs/_docs/04_reference/experiment-mode.md
5+
// Note that any behavior outlined here should be documented in /docs/_docs/04_reference/experiments.md
66
//
77
// That is how users will know what to expect when they enable experiment mode, and how to customize it.
88
package experiment
@@ -122,7 +122,7 @@ type CompletedExperimentsWarning struct {
122122
}
123123

124124
func (e CompletedExperimentsWarning) String() string {
125-
return "The following experiment(s) are already completed: " + strings.Join(e.ExperimentNames, ", ") + ". Please remove any completed experiments, as setting them no longer does anything. For a list of all ongoing experiments, and the outcomes of previous experiments, see https://terragrunt.gruntwork.io/docs/reference/experiment-mode"
125+
return "The following experiment(s) are already completed: " + strings.Join(e.ExperimentNames, ", ") + ". Please remove any completed experiments, as setting them no longer does anything. For a list of all ongoing experiments, and the outcomes of previous experiments, see https://terragrunt.gruntwork.io/docs/reference/experiments/"
126126
}
127127

128128
// InvalidExperimentsError is an error that is returned when an invalid experiments are requested.
@@ -131,7 +131,7 @@ type InvalidExperimentsError struct {
131131
}
132132

133133
func (e InvalidExperimentsError) Error() string {
134-
return "The following experiment(s) are invalid: " + strings.Join(e.ExperimentNames, ", ") + ". For a list of all valid experiments, see https://terragrunt.gruntwork.io/docs/reference/experiment-mode"
134+
return "The following experiment(s) are invalid: " + strings.Join(e.ExperimentNames, ", ") + ". For a list of all valid experiments, see https://terragrunt.gruntwork.io/docs/reference/experiments/"
135135
}
136136

137137
// Evaluate returns true if either the experiment is enabled, or experiment mode is enabled.

internal/experiment/experiment_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func TestValidateExperiments(t *testing.T) {
5050
},
5151
},
5252
experimentNames: []string{experiment.Symlinks},
53-
expectedWarning: "The following experiment(s) are already completed: symlinks. Please remove any completed experiments, as setting them no longer does anything. For a list of all ongoing experiments, and the outcomes of previous experiments, see https://terragrunt.gruntwork.io/docs/reference/experiment-mode",
53+
expectedWarning: "The following experiment(s) are already completed: symlinks. Please remove any completed experiments, as setting them no longer does anything. For a list of all ongoing experiments, and the outcomes of previous experiments, see https://terragrunt.gruntwork.io/docs/reference/experiments/",
5454
expectedError: nil,
5555
},
5656
{
@@ -62,7 +62,7 @@ func TestValidateExperiments(t *testing.T) {
6262
},
6363
},
6464
experimentNames: []string{"invalid", experiment.Symlinks},
65-
expectedWarning: "The following experiment(s) are already completed: symlinks. Please remove any completed experiments, as setting them no longer does anything. For a list of all ongoing experiments, and the outcomes of previous experiments, see https://terragrunt.gruntwork.io/docs/reference/experiment-mode",
65+
expectedWarning: "The following experiment(s) are already completed: symlinks. Please remove any completed experiments, as setting them no longer does anything. For a list of all ongoing experiments, and the outcomes of previous experiments, see https://terragrunt.gruntwork.io/docs/reference/experiments/",
6666
expectedError: experiment.InvalidExperimentsError{
6767
ExperimentNames: []string{"invalid"},
6868
},

0 commit comments

Comments
 (0)