Skip to content

Commit

Permalink
chore: update help text to use credentials.toml
Browse files Browse the repository at this point in the history
When creating new tokens, we get a helpful message that tells us how to
configure everything so that the token (and registry) is picked up
correctly.  However it suggests to use `.cargo/credentials`, which will
result in a deprecation warning from cargo that `.cargo/credentials.toml`
is preferred.
  • Loading branch information
satlank authored and woutersl committed Sep 25, 2024
1 parent 7afd6eb commit 95d4ac4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/webapp/account.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ <h3 class="mb-3 text-2xl font-bold text-gray-900 dark:text-white">New created to
</p>
<textarea id="modal-token-created-git-cred" rows="2" class="block p-2.5 w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" style="font-family: monospace;" disabled></textarea>
<p class="text-base text-gray-900 dark:text-white">
It also needs to appear in <kbd>~/.cargo/credentials</kbd>:
It also needs to appear in <kbd>~/.cargo/credentials.toml</kbd>:
</p>
<textarea id="modal-token-created-cargo-cred" rows="4" class="block p-2.5 w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" style="font-family: monospace;" disabled></textarea>
<p class="text-base text-gray-900 dark:text-white">
Expand Down
2 changes: 1 addition & 1 deletion src/webapp/admin-tokens.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ <h3 class="mb-3 text-2xl font-bold text-gray-900 dark:text-white">New created to
</p>
<textarea id="modal-token-created-git-cred" rows="2" class="block p-2.5 w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" style="font-family: monospace;" disabled></textarea>
<p class="text-base text-gray-900 dark:text-white">
It also needs to appear in <kbd>~/.cargo/credentials</kbd>:
It also needs to appear in <kbd>~/.cargo/credentials.toml</kbd>:
</p>
<textarea id="modal-token-created-cargo-cred" rows="4" class="block p-2.5 w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" style="font-family: monospace;" disabled></textarea>
<p class="text-base text-gray-900 dark:text-white">
Expand Down

0 comments on commit 95d4ac4

Please # to comment.