Skip to content

Exec never outputs anything #7

Closed

Description

@dubo-dubon-duponey

With the following:

package acme

import (
	"dagger.cloud/dagger"
	"dagger.cloud/alpine"
)

let base=alpine & {
	package: {
		bash: ">3.0"
		rsync: true
	}
}


www: {

	source: {
		#dagger: compute: [
            dagger.#Load & { from: base },
			dagger.#Exec & {
			    args: ["sh", "-c", "echo", "shouldseeme"]
			    // XXX workaround exec not working without a mount
			    mount: foo: {}
			}
		]
	}

	host: string
}


And running

DEBUG=1 DOCKER_OUTPUT=1 dagger compute .

The string "shouldseeme" should be visible somewhere in the logs, right?

Activity

  1. aluzzardi commented on Jan 12, 2021

    @aluzzardi
    Contributor

    Was the exec cached by any chance? You should see a cached message in the logs. You can force it to always run by adding always: true in the exec statement.

  2. dubo-dubon-duponey commented on Jan 12, 2021

    @dubo-dubon-duponey
    ContributorAuthor

    I don't think it was cached. I also tested changing the string in the echo to make sure the cache is busted (?), but still the same.

    I also just tested with always: true - nothing shown.

  3. dubo-dubon-duponey commented on Jan 13, 2021

    @dubo-dubon-duponey
    ContributorAuthor

    Seems to be working now on latest master. Will confirm soon.

  4. dubo-dubon-duponey commented on Jan 13, 2021

    @dubo-dubon-duponey
    ContributorAuthor

    Confirmed, it's working now (side-effect of other fixes?). Closing then.

  5. added a commit that references this issue on May 23, 2023
  6. added a commit that references this issue on Jun 1, 2023
    21079a6
  7. added a commit that references this issue on Jun 1, 2023
    100b99d
  8. added a commit that references this issue on Aug 24, 2023
  9. added a commit that references this issue on Jul 31, 2025
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions