Skip to content

Export does not seem to work #8

Closed

Description

@dubo-dubon-duponey

With

// ACME platform: everything you need to develop and ship improvements to
// the ACME clothing store.
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", """
                    ls -l > /tmp/out
                    """,
                ]
			    // XXX workaround exec not working without a mount
			    mount: foo: {}
			},
			dagger.#Export & {
                source: "/tmp/out"
			}
		]
	}

	host: string
}

Will return:

[info] Running
buildkit solve:  task failed: execute op 3/3: export /tmp/out:  open /tmp/buildkit-mount962564487/tmp/out: no such file or directory

Activity

  1. changed the title [-]Export does not work[/-] [+]Export does not seem to work[/+] on Jan 11, 2021
  2. aluzzardi commented on Jan 12, 2021

    @aluzzardi
    Contributor

    I have this error as well, but it seems to be a race condition. Happens to me once in a while.

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

    @dubo-dubon-duponey
    ContributorAuthor

    Can't reproduce anymore with b5427cf - might still be racy but work on #17 may help as well

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

    @dubo-dubon-duponey
    ContributorAuthor

    Actually, it's still there - just harder to trigger.
    Reproduction: have a bunch (5+) exec + export in a single cue file.

  5. added
    kind/bug
    on Jan 16, 2021
  6. linked a pull request that will close this issueFix locking around Fill and Lookup #54on Jan 21, 2021
  7. aluzzardi commented on Jan 21, 2021

    @aluzzardi
    Contributor

    Actually this is another manifestation of #28 (silent abort of non-concrete operations), which got fixed by #57.

    6:08PM WRN script is unspecified, aborting execution error="#Op.from.#dagger.compute.1.mount.foo: incomplete value {input:{#dagger:{}},path:*\"/\" | string} | {input:[],path:*\"/\" | string}" path=www.source
    6:08PM WRN script is unspecified, aborting execution error="www.source.#dagger.compute.1.mount.foo: incomplete value {input:{#dagger:{}},path:*\"/\" | string} | {input:[],path:*\"/\" | string}" path=www.source
    

    That's because of #6 exec used not to work without mount. However since those mounts were not concrete, the operation was skipped.

  8. added a commit that references this issue on May 23, 2023
  9. added a commit that references this issue on Jun 1, 2023
    32a9343
  10. added a commit that references this issue on Jun 1, 2023
    100b99d
  11. added 2 commits that reference this issue on Sep 18, 2023
  12. 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

    kind/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions