Skip to content

[BUG] [Vaden Generator] SDK Version Incompatibility: Generated Dockerfile uses version (3.6.0) lower than required in pubspec.yaml (3.10.0)Β #136

@gabrielalmir

Description

@gabrielalmir

πŸ› Bug Report

πŸ“„ Title

SDK Version Incompatibility: Generated Dockerfile uses version (3.6.0) lower than required in pubspec.yaml (3.10.0)

πŸ”— External Link

πŸ–₯️ Environment

  • Operating System: Windows 11 (Docker via WSL2)
  • Browser: Microsoft Edge v142.0.3595.90 (64-bits)
  • Application Version: Vaden Generator 1.0.0

πŸ“ Detailed Description

When generating a new project by selecting Dart version "3.10.0" in the Vaden Generator interface, the pubspec.yaml file is correctly created with the sdk: ^3.10.0 constraint. However, the Dockerfile is generated pointing to an older base image (FROM dart:3.6.0). This prevents the container from building the project, as the container's SDK does not meet the project's minimum requirements.

Workaround: Manually update the SDK version in the pubspec.yaml file.

πŸ”„ Steps to Reproduce

  1. Open Vaden Generator.
  2. Fill in the project details.
  3. Select Dart Version: 3.10.0 from the dropdown menu.
  4. Click on "Generate project".
  5. Open the generated Dockerfile in the project root.

βœ… Expected Result

The Dockerfile should contain the instruction corresponding to the selected version or a compatible one:
FROM dart:3.10.0 AS build or FROM dart:stable AS build

❌ Actual Result

The Dockerfile is generated with a hardcoded, outdated version:
FROM dart:3.6.0 AS build

πŸ“· Evidence

File: pubspec.yaml (Line 7)

environment:
  sdk: ^3.10.0

File: Dockerfile (Line 1)

FROM dart:3.6.0 AS build
Image Image

⚠️ Severity

  • Low
  • Medium
  • High
  • Critical

🚨 Priority

  • P1 (High)
  • P2 (Medium)
  • P3 (Low)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions