0
0
mirror of https://github.com/dependabot/dependabot-core.git synced 2025-06-14 05:41:44 +00:00
Files
Jeff Widman 72dcd465f2 Ensure .core-bash_history file exists when debugging with Dependabot CLI (#11956)
I was trying to run `script/dependabot` within a Codespace when I got
the following error:

    @jeffwidman ➜ /workspaces/dependabot-core (main ✗) $ script/dependabot update maven dsp-testing/test-dependabot-updates-9127 --debug
    cli | 2025/04/01 21:56:02 Inserting $LOCAL_GITHUB_ACCESS_TOKEN into credentials
    cli | 2025/04/01 21:56:03 image ghcr.io/github/dependabot-update-job-proxy/dependabot-update-job-proxy:latest is already up to date
    cli | 2025/04/01 21:56:03 using image ghcr.io/github/dependabot-update-job-proxy/dependabot-update-job-proxy:latest at sha256:113d9623e8852177b0027bd1c313bd1c1637058e4079fda9328b735cb4eabbf7
    cli | 2025/04/01 21:56:03 image ghcr.io/dependabot/dependabot-updater-maven is already up to date
    cli | 2025/04/01 21:56:03 using image ghcr.io/dependabot/dependabot-updater-maven at sha256:0126eb8f76eb69aeb72f6c50791d76c4bfe0993a411b70689a830ddc6592c86b
    cli | 2025/04/01 21:56:09 updater failure: failed to create updater container: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /workspaces/dependabot-core/.core-bash_history

The script is expecting to mount `.core-bash_history` but that file
didn't exist so it crashed.

The intent of this file is to provide a persistent bash history, so
`touch` is all we need. For more background see:
* https://github.com/dependabot/dependabot-core/pull/1896
2025-04-02 11:24:38 -07:00
..
2025-02-19 17:27:39 +00:00
2023-12-14 08:03:17 -06:00
2023-12-14 08:03:17 -06:00