GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docker(install): set missing XDG_RUNTIME_DIR env by crazy-max · Pull Request #763 · docker/actions-toolkit

Conversation

@crazy-max

@crazy-max crazy-max commented Aug 8, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

fixes #760

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions github-actions Bot assigned crazy-max Aug 8, 2025
@crazy-max
crazy-max requested a review from vvoland August 8, 2025 06:33
@crazy-max
crazy-max marked this pull request as ready for review August 8, 2025 06:33
vvoland
vvoland approved these changes Aug 8, 2025
View reviewed changes
vvoland
vvoland reviewed Aug 8, 2025
View reviewed changes
Comment thread src/docker/install.ts Outdated
const envs = Object.assign({}, process.env, {
PATH: `${this.toolDir}:${process.env.PATH}`,
XDG_RUNTIME_DIR: (this.rootless && this.runDir) || undefined
XDG_RUNTIME_DIR: (this.rootless && this.runDir) || process.env.XDG_RUNTIME_DIR

@vvoland vvoland Aug 8, 2025

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't hurt, but actually it shouldn't even get to that point if runDir is not set?

actions-toolkit/src/docker/install.ts

Lines 233 to 235 in 70344da

if (!this.runDir) {
throw new Error('runDir must be set');
}

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@crazy-max crazy-max Aug 8, 2025

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes indeed, I'm reverting this change

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@crazy-max
docker(install): set missing XDG_RUNTIME_DIR env
7f3d74b
Signed-off-by: CrazyMax <[email protected]>
@crazy-max
crazy-max force-pushed the docker-install-xdg branch from 37991d7 to 7f3d74b Compare August 8, 2025 08:11
@crazy-max
crazy-max merged commit 2e23307 into docker:main Aug 8, 2025
@crazy-max
crazy-max deleted the docker-install-xdg branch August 8, 2025 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@vvoland vvoland vvoland approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@crazy-max crazy-max

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

PATH and XDG_RUNTIME_DIR env variables are not set in rootless mode.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@crazy-max @vvoland
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.