Skip to content

Commit 584a8e0

Browse files
gusthoffclaude
andcommitted
Vagrantfile: export Ada toolchain PATH in .profile instead of .bashrc
.bashrc is only sourced for interactive shells, causing GNAT tools like gnatchop to be unavailable in non-interactive SSH sessions. Moving the export to .profile ensures the toolchain is on PATH for login shells, which is what SSH creates. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ef3b79b commit 584a8e0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Vagrantfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ $frontend = <<-SHELL
6464
6565
chown -R vagrant:vagrant ${path_ada_toolchain_root}
6666
67-
echo "export PATH=\\"${path_ada_toolchain_selected}/gnat/bin:${path_ada_toolchain_default}/gnat/bin:${PATH}\\"" >> /home/vagrant/.bashrc
68-
source /home/vagrant/.bashrc
67+
echo "export PATH=\\"${path_ada_toolchain_selected}/gnat/bin:${path_ada_toolchain_default}/gnat/bin:${PATH}\\"" >> /home/vagrant/.profile
68+
source /home/vagrant/.profile
6969
7070
# Install learn deps
7171
python3 -m venv /vagrant/venv
@@ -200,8 +200,8 @@ $epub = <<-SHELL
200200
201201
chown -R vagrant:vagrant ${path_ada_toolchain_root}
202202
203-
echo "export PATH=\\"${path_ada_toolchain_selected}/gnat/bin:${path_ada_toolchain_selected}/gprbuild/bin:${path_ada_toolchain_selected}/gnatprove/bin:${path_ada_toolchain_default}/gnat/bin:${path_ada_toolchain_default}/gprbuild/bin:${path_ada_toolchain_default}/gnatprove/bin:${PATH}\\"" >> /home/vagrant/.bashrc
204-
source /home/vagrant/.bashrc
203+
echo "export PATH=\\"${path_ada_toolchain_selected}/gnat/bin:${path_ada_toolchain_selected}/gprbuild/bin:${path_ada_toolchain_selected}/gnatprove/bin:${path_ada_toolchain_default}/gnat/bin:${path_ada_toolchain_default}/gprbuild/bin:${path_ada_toolchain_default}/gnatprove/bin:${PATH}\\"" >> /home/vagrant/.profile
204+
source /home/vagrant/.profile
205205
206206
# Install learn deps
207207
python3 -m venv /vagrant/venv

0 commit comments

Comments
 (0)