Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$mol_build. Сделать более надежным механизм обновлений модулей #384

Open
zerkalica opened this issue Oct 23, 2019 · 3 comments
Labels

Comments

@zerkalica
Copy link
Collaborator

Возникло в #356, я делал git reset --hard ; git pull upstream в каждом git-репозитории, но это не помогло, где-то цеплялся старый код.

Помогло сделать git clean -xdf в mol hyoo/toys mol/icon.
В icon было много незакоммиченных изменений, хотя я там ничего не правил. В hyoo/toys были d.ts и js, хз, может я случайно когда-то там запускал tsc и забыл.

Скорее всего механизм апдейтов в mol_build лажает, если есть незакоммиченные файлы.

Нужно переосмыслить алгоритм обновления исходников, может git clean -xdf запускать. Нужно добиться идентичности кодовой базы модулей при любых рефакторингах. Например, незакоммиченный файл в mol или в mol/icon, может сломать апдейт.

23:04 $ g diff
diff --git a/attach/attach.view.tree b/attach/attach.view.tree
deleted file mode 100644
index 7e0b383..0000000
--- a/attach/attach.view.tree
+++ /dev/null
@@ -1 +0,0 @@
-$mol_icon_attach $mol_icon path \M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z
diff --git a/chat/chat.view.tree b/chat/chat.view.tree
deleted file mode 100644
index 23fa838..0000000
--- a/chat/chat.view.tree
+++ /dev/null
@@ -1 +0,0 @@
-$mol_icon_chat $mol_icon path \M12,3C17.5,3 22,6.58 22,11C22,15.42 17.5,19 12,19C10.76,19 9.57,18.82 8.47,18.5C5.55,21 2,21 2,21C4.33,18.67 4.7,17.1 4.75,16.5C3.05,15.07 2,13.13 2,11C2,6.58 6.5,3 12,3Z
diff --git a/chevron/chevron.view.tree b/chevron/chevron.view.tree
deleted file mode 100644
index a62d6b4..0000000
--- a/chevron/chevron.view.tree
+++ /dev/null
@@ -1 +0,0 @@
-$mol_icon_chevron $mol_icon path \M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z
diff --git a/cross/cross.view.tree b/cross/cross.view.tree
deleted file mode 100644
index ce1d0e1..0000000
--- a/cross/cross.view.tree
+++ /dev/null
@@ -1 +0,0 @@
-$mol_icon_cross $mol_icon path \M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z
diff --git a/demo/demo.view.css b/demo/demo.view.css
deleted file mode 100644
index e3ac166..0000000
--- a/demo/demo.view.css
+++ /dev/null
@@ -1,19 +0,0 @@
-[mol_icon_demo] {
-       display: flex;
-       flex-direction: column;
-}
-
-[mol_icon_demo_icons_filter] {
-       align-self: stretch;
-       flex: none;
-}
-
-[mol_icon_demo_icon] {
-       width: 24px;
-       height: 24px;
-}
-
-[mol_icon_demo_icon]:hover {
-       color: var(--mol_skin_accent);
-       transform: scale(1.5);
-}
diff --git a/demo/demo.view.tree b/demo/demo.view.tree
deleted file mode 100644
index 0cd3527..0000000
--- a/demo/demo.view.tree
+++ /dev/null
@@ -1,3907 +0,0 @@
-$mol_icon_demo $mol_page
-       title @ \All $mol icons
-       sub /
-               <= Head
-               <= Icons_filter $mol_search
-                       query?val <=> icons_filter?val \
-               <= Output $mol_grid
-                       row_height 32
-                       records <= records *
-                       Head null
-       Icon!name $mol_icon
-       data *
-               $mol_icon_alpha_t_circle \alphabet-t-circle letter-t-circle Alpha / Numeric
-               $mol_icon_access_point \wireless
-               $mol_icon_access_point_network_off \
-               $mol_icon_account \person user Account / User Home Automation
-               $mol_icon_account_alert \user-alert account-warning user-warning person-alert person-warning Account / User Alert / Error
-               $mol_icon_account_alert_outline \user-alert-outline account-warning-outline user-warning-outline person-warning-outline person-alert-outline Account / User Alert / Error
-               $mol_icon_account_arrow_left \user-arrow-left person-arrow-left Account / User
-               $mol_icon_account_arrow_left_outline \user-arrow-left-outline person-arrow-left-outline Account / User
-               $mol_icon_account_arrow_right \user-arrow-right person-arrow-right Account / User
-               $mol_icon_account_arrow_right_outline \user-arrow-right-outline person-arrow-right-outline Account / User
-               $mol_icon_account_badge \user-badge person-badge Account / User
-               $mol_icon_account_badge_alert \user-badge-alert person-badge-alert account-badge-warning user-badge-warning person-badge-warning Account / User Alert / Error Alert / Error
-               $mol_icon_account_badge_alert_outline \user-badge-alert-outline person-badge-alert-outline account-badge-warning-outline user-badge-warning-outline person-badge-warning-outline Account / User Alert / Error
-               $mol_icon_account_badge_horizontal \Account / User
-               $mol_icon_account_badge_horizontal_outline \Account / User
-               $mol_icon_account_badge_outline \user-badge-outline person-badge-outline Account / User
-               $mol_icon_account_box \selfie user-box person-box contact Account / User
-               $mol_icon_account_box_multiple \switch-account user-box-multiple account-boxes user-boxes person-box-multiple person-boxes Account / User
-               $mol_icon_account_box_outline \selfie-outline user-box-outline portrait contact-outline person-box-outline Account / User
-               $mol_icon_account_card_details \identification-card user-card-details id-card person-card-details drivers-license business-card Account / User
-               $mol_icon_account_card_details_outline \identification-card-outline user-card-details-outline id-card-outline person-card-details-outline drivers-license-outline business-card-outline Account / User
-               $mol_icon_account_check \user-check account-tick user-tick person-check person-tick how-to-reg Account / User
-               $mol_icon_account_check_outline \account-tick-outline user-check-outline user-tick-outline person-check-outline person-tick-outline how-to-reg-outline Account / User
-               $mol_icon_account_child \user-child person-child guardian Account / User
-               $mol_icon_account_child_circle \user-child-circle person-child-circle guardian-circle Account / User
-               $mol_icon_account_circle \user-circle person-circle Account / User
-               $mol_icon_account_circle_outline \user-circle-outline person-circle-outline Account / User
-               $mol_icon_account_clock \user-clock account-pending person-clock Account / User
-               $mol_icon_account_clock_outline \user-clock-outline account-pending-outline person-clock-outline Account / User
-               $mol_icon_account_convert \user-convert person-convert Account / User
-               $mol_icon_account_details \user-details person-details Account / User Settings
-               $mol_icon_account_edit \user-edit person-edit Account / User Edit / Modify
-               $mol_icon_account_group \user-group users-group person-group people-group accounts-group Account / User
-               $mol_icon_account_group_outline \user-group-outline users-group-outline person-group-outline people-group-outline accounts-group-outline Account / User
-               $mol_icon_account_heart \user-heart person-heart Account / User Medical / Hospital
-               $mol_icon_account_heart_outline \user-heart-outline person-heart-outline Account / User Medical / Hospital
-               $mol_icon_account_key \user-key person-key Account / User
-               $mol_icon_account_key_outline \user-key-outline person-key-outline Account / User
-               $mol_icon_account_minus \user-minus person-minus Account / User
-               $mol_icon_account_minus_outline \user-minus-outline person-minus-outline Account / User
-               $mol_icon_account_multiple \people user-multiple group accounts users person-multiple Account / User
-               $mol_icon_account_multiple_check \user-multiple-check account-multiple-tick accounts-check accounts-tick users-check users-tick user-multiple-tick person-multiple-check person-multiple-tick people-check people-tick Account / User
-               $mol_icon_account_multiple_minus \user-multiple-minus accounts-minus users-minus people-minus person-multiple-minus Account / User
-               $mol_icon_account_multiple_minus_outline \accounts-minus-outline people-minus-outline user-multiple-minus-outline users-minus-outline person-multiple-minus-outline Account / User
-               $mol_icon_account_multiple_outline \user-multiple-outline people-outline accounts-outline users-outline Account / User
-               $mol_icon_account_multiple_plus \user-multiple-plus group-add accounts-plus users-plus person-multiple-plus people-plus person-multiple-add people-add account-multiple-add accounts-add user-multiple-add users-add Account / User
-               $mol_icon_account_multiple_plus_outline \group-add-outline user-multiple-plus-outline accounts-plus-outline users-plus-outline person-multiple-plus-outline people-plus-outline person-multiple-add-outline people-add-outline account-multiple-add-outline accounts-add-outline user-multiple-add-outline users-add-outline Account / User
-               $mol_icon_account_network \user-network person-network Account / User
-               $mol_icon_account_network_outline \user-network-outline person-network-outline Account / User
-               $mol_icon_account_off \user-off person-off Account / User
-               $mol_icon_account_off_outline \user-off-outline person-off-outline Account / User
-               $mol_icon_account_outline \user-outline perm-identity person-outline Account / User
-               $mol_icon_account_plus \register user-plus person-add account-add person-plus user-add Account / User Home Automation
-               $mol_icon_account_plus_outline \person-add-outline register-outline user-plus-outline account-add-outline person-plus-outline user-add-outline Account / User
-               $mol_icon_account_question \user-help account-question-mark account-help user-question person-question person-help Account / User
@zerkalica zerkalica added the bug label Oct 23, 2019
@nin-jin
Copy link
Member

nin-jin commented Oct 23, 2019

Можно какой-то простой алгоритм воспроизведения?

@zerkalica
Copy link
Collaborator Author

Нельзя к сожалению, но огребаю регулярно из-за этого

@frf-nn
Copy link
Contributor

frf-nn commented Dec 19, 2023

git stash
git stash drop
?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants