Skip to content

coder dotfiles errors if symlinks exist; breaks JetBrains Gateway #7427

Closed
@spikecurtis

Description

@spikecurtis

coder dotfiles throws an error if symlinks already exist, which happens if you restart your workspace since it created the symlinks on last startup.

+ DOTFILES_URI=git@github.com:spikecurtis/dotfiles.git
+ rm -f /home/coder/.personalize.log
+ '[' -n git@github.com:spikecurtis/dotfiles.git ']'
+ coder dotfiles git@github.com:spikecurtis/dotfiles.git -y
+ tee -a /home/coder/.personalize.log
Checking if dotfiles repository already exists...
Found dotfiles repository at /home/coder/.config/coderv2/dotfiles
Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.
Already up to date.
Symlinking /home/coder/.config/coderv2/dotfiles/.bash_aliases to /home/coder/.bash_aliases...
symlinking /home/coder/.config/coderv2/dotfiles/.bash_aliases to /home/coder/.bash_aliases: symlink /home/coder/.config/coderv2/dotfiles/.bash_aliases /home/coder/.bash_aliases: file exists

If you include coder dotfiles in a startup script, as we are wont to do, it causes the startup script to fail.

This then causes us to write some errors on coder ssh to the workspace.

This then causes Jetbrains Gateway to fail to connect to the workspace over SSH.

Metadata

Metadata

Assignees

No one assigned

    Labels

    s1Bugs that break core workflows. Only humans may set this.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions