Skip to content

fix(workspace): imageless init-workspace --no-prompts defaults DEVKIT_ORG to literal 'vigOS/devc' #954

Closed

Description

@c-vigo

Summary

On the imageless podman run … init-workspace.sh --no-prompts upgrade path (no install.sh), DEVKIT_ORG is persisted as the literal vigOS/devc instead of the real org. Reproduced on the #921 imageless probe across 0.5.0-rc3 and 0.5.0-rc4. The install.sh path resolves the org correctly (vigOS).

Root cause

assets/init-workspace.sh line ~320–321:

if [[ "$NO_PROMPTS" == "true" ]]; then
    ORG_NAME="${ORG_NAME:-vigOS/devc}"

A hardcoded literal default (a leftover tuned to this repo's own self-scaffold) is used when --no-prompts is set with no ORG_NAME env and no DEVKIT_ORG in the manifest — exactly the raw imageless path. install.sh/interactive runs pass or prompt for ORG_NAME, so they never hit it.

Two problems: (1) an org value should never contain /; (2) GITHUB_REPOSITORY (owner/repo) is available on this path — DEVKIT_REPO resolves from it correctly — but ORG_NAME ignores it. The bad value is then sed-substituted into {{ORG_NAME}} across generated files (lines ~883/895), leaking a malformed org into Renovate config/docs, not just the manifest field.

Fix

Default the org from the repo owner already in hand:

ORG_NAME="${ORG_NAME:-${GITHUB_REPOSITORY%%/*}}"   # e.g. vig-os/probe3 -> vig-os

falling back to a sane literal (vigOS) only if GITHUB_REPOSITORY is also unset. At minimum, drop the /-containing default.

Acceptance criteria (TDD)

  • Bats coverage: init-workspace.sh --no-prompts with GITHUB_REPOSITORY=some-org/repo and no ORG_NAME persists DEVKIT_ORG=some-org (not vigOS/devc), and no generated file contains a /-bearing {{ORG_NAME}} substitution.

Found during 0.5.0 validation (imageless #921 probe).

Activity

  1. added this to the 0.5.1 milestone on Jul 9, 2026
  2. added
    bug
    priority:low
    area:workspace
    semver:patch
    on Jul 9, 2026
  3. c-vigo commented on Jul 9, 2026

    @c-vigo
    ContributorAuthor

    Fixed in #956 (merged to dev). Imageless init-workspace.sh --no-prompts now derives DEVKIT_ORG from the GITHUB_REPOSITORY owner segment (fallback literal vigOS), dropping the bogus vigOS/devc default that also leaked a / into {{ORG_NAME}} substitutions. Covered by a new bats test. Ships in 0.5.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:workspacebugpriority:lowsemver:patch

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions