railpack

Configure and troubleshoot Railpack builds, with emphasis on RAILPACK_* environment variables, railpack.json overlays, build-plan inspection, local CLI installation and usage, and local BuildKit containers. Use for Railpack provider configuration, custom install/build/start commands, Mise or Apt packages, build or runtime variables and secrets, generated-plan debugging, BUILDKIT_HOST errors, or running Railpack from a release or source checkout.

Install
npx skills add 'https://github.com/railwayapp/railpack/tree/main/.'
Incomplete bundle · no download
main · 21a254fScanned 2026-09-17

Contributors

GitHub-linked commit authors for this SKILL.md at the saved revision. Co-authors and history before file renames are not included.

File history ↗

core/logger/logger_test.go

core/logger/logger_test.goBrowse 1970 files
View on GitHub
← Back to SKILL.md
package logger import (	"testing" 	"github.com/stretchr/testify/require") func TestLogSuggestion(t *testing.T) {	t.Run("without docs path", func(t *testing.T) {		l := NewLogger()		l.LogSuggestion("try including `...`") 		require.Len(t, l.Logs, 1)		require.Equal(t, Suggestion, l.Logs[0].Level)		require.Equal(t, "try including `...`", l.Logs[0].Msg)		require.Empty(t, l.Logs[0].DocsPath)	}) 	t.Run("with docs path", func(t *testing.T) {		l := NewLogger()		l.LogSuggestion("try including `...`", "/guides/installing-packages") 		require.Len(t, l.Logs, 1)		require.Equal(t, Suggestion, l.Logs[0].Level)		require.Equal(t, "try including `...`", l.Logs[0].Msg)		require.Equal(t, "/guides/installing-packages", l.Logs[0].DocsPath)	})} func TestDocsURL(t *testing.T) {	require.Equal(t, "https://railpack.com", DocsURL(""))	require.Equal(t, "https://railpack.com/guides/installing-packages", DocsURL("/guides/installing-packages"))	require.Equal(t, "https://railpack.com/guides/installing-packages", DocsURL("guides/installing-packages"))	require.Equal(		t,		"https://tanstack.com/start/latest/docs/framework/react/guide/hosting#nitro",		DocsURL("https://tanstack.com/start/latest/docs/framework/react/guide/hosting#nitro"),	)}