Skip to content

Commit c0d3dd4

Browse files
committed
Disable cog-runtime prompt for now
1 parent e61c028 commit c0d3dd4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/dockerfile/standard_generator.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ const CFlags = "ENV CFLAGS=\"-O3 -funroll-loops -fno-strict-aliasing -flto -S\""
5151
const PrecompilePythonCommand = "RUN find / -type f -name \"*.py[co]\" -delete && find / -type f -name \"*.py\" -exec touch -t 197001010000 {} \\; && find / -type f -name \"*.py\" -printf \"%h\\n\" | sort -u | /usr/bin/python3 -m compileall --invalidation-mode timestamp -o 2 -j 0"
5252
const STANDARD_GENERATOR_NAME = "STANDARD_GENERATOR"
5353

54+
const AskAboutCogRuntime = false
55+
5456
type StandardGenerator struct {
5557
Config *config.Config
5658
Dir string
@@ -505,6 +507,11 @@ func (g *StandardGenerator) askAboutCogRuntime() (bool, error) {
505507
console.Warnf("Major Cog runtime upgrade available. Opt in now by setting build.cog_runtime: true in cog.yaml.")
506508
console.Warnf("More: https://replicate.com/changelog/2025-07-21-cog-runtime")
507509

510+
// Do not ask until we're ready
511+
if !AskAboutCogRuntime {
512+
return false, nil
513+
}
514+
508515
// Skip question if not in an interactive shell
509516
if !term.IsTerminal(int(os.Stdin.Fd())) || !term.IsTerminal(int(os.Stdout.Fd())) || !term.IsTerminal(int(os.Stderr.Fd())) {
510517
return false, nil

0 commit comments

Comments
 (0)